ack/mach/m68020/as/Makefile

68 lines
1.4 KiB
Makefile
Raw Normal View History

1985-04-12 16:56:43 +00:00
# $Header$
EM = ../../..
h = $(EM)/h
1986-12-01 15:35:28 +00:00
LIBOBJ = $(EM)/modules/lib/libobject.a
1985-04-12 16:56:43 +00:00
CDIR = $(EM)/mach/proto/nas
CPP = $(EM)/lib/cpp
DEF =
FFLAG =
1986-12-01 15:35:28 +00:00
INCL = -I. -I$h $(DEF)
CFLAGS = $(FFLAG) -O $(INCL)
1985-04-12 16:56:43 +00:00
YFLAGS = -d
LDFLAGS = $(FFLAG) -i
CSRC = $(CDIR)/comm3.c $(CDIR)/comm4.c $(CDIR)/comm5.c \
$(CDIR)/comm6.c $(CDIR)/comm7.c $(CDIR)/comm8.c
1985-05-13 11:19:24 +00:00
COBJ = comm3.o comm4.o comm5.o \
comm6.o comm7.o comm8.o
1985-04-12 16:56:43 +00:00
MACH = mach0.c mach1.c mach2.c mach3.c mach4.c mach5.c
COMM = $(CDIR)/comm0.h $(CDIR)/comm1.h $(CDIR)/comm2.y $(CSRC)
all: as
install:all
../../install as
cmp:
-../../compare as
clean:
rm -f *.o as as.[cy] y.tab.h
pr: $(MACH)
@pr -n $(MACH)
opr:
make pr | opr
as: $(COBJ) as.o
1986-12-01 15:35:28 +00:00
$(CC) $(LDFLAGS) $(COBJ) as.o $(LIBOBJ) -o as
1985-04-12 16:56:43 +00:00
as.y: $(CDIR)/comm2.y
1985-05-13 11:19:24 +00:00
$(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
1985-04-12 16:56:43 +00:00
@echo "expect 1 shift/reduce conflict"
lint: $(CSRC) as.c
1986-12-01 15:35:28 +00:00
lint $(INCL) $(CSRC) as.c
1985-04-12 16:56:43 +00:00
y.tab.h: as.c
$(COBJ): y.tab.h
$(COBJ) as.y: $(CDIR)/comm0.h mach0.c
$(COBJ) as.y: $(CDIR)/comm1.h mach1.c
as.y: mach2.c
comm3.o: mach3.c
as.y: mach4.c
comm8.o: mach5.c
1985-05-13 11:19:24 +00:00
comm3.o: $(CDIR)/comm3.c
$(CC) -c $(CFLAGS) $(CDIR)/comm3.c
comm4.o: $(CDIR)/comm4.c
$(CC) -c $(CFLAGS) $(CDIR)/comm4.c
comm5.o: $(CDIR)/comm5.c
$(CC) -c $(CFLAGS) $(CDIR)/comm5.c
comm6.o: $(CDIR)/comm6.c
$(CC) -c $(CFLAGS) $(CDIR)/comm6.c
comm7.o: $(CDIR)/comm7.c
$(CC) -c $(CFLAGS) $(CDIR)/comm7.c
comm8.o: $(CDIR)/comm8.c
$(CC) -c $(CFLAGS) $(CDIR)/comm8.c