ack/mach/i386/as/Makefile

68 lines
1.5 KiB
Makefile
Raw Normal View History

1985-04-12 16:56:43 +00:00
# $Header$
1987-06-30 18:20:25 +00:00
EMHOME = ../../..
h = $(EMHOME)/h
LIBOBJ = $(EMHOME)/modules/lib/libobject.a
CDIR = $(EMHOME)/mach/proto/as
CPP = $(EMHOME)/lib/cpp
1985-04-12 16:56:43 +00:00
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
1990-11-27 16:51:58 +00:00
-@if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
1985-04-12 16:56:43 +00:00
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