1988-05-30 17:17:16 +00:00
|
|
|
# M A K E F I L E F O R L P A S S 2
|
|
|
|
|
|
|
|
# Machine and environ dependent definitions
|
|
|
|
EMHOME = /usr/em
|
|
|
|
LPASS1 = ../lpass1
|
|
|
|
|
|
|
|
# Libraries and EM interface definitions
|
|
|
|
SYSLIB = $(EMHOME)/modules/lib/libsystem.a
|
|
|
|
STRLIB = $(EMHOME)/modules/lib/libstring.a
|
|
|
|
PRTLIB = $(EMHOME)/modules/lib/libprint.a
|
|
|
|
INPLIB = $(EMHOME)/modules/lib/libinput.a
|
|
|
|
ALLOCLIB = $(EMHOME)/modules/lib/liballoc.a
|
|
|
|
MALLOC = $(EMHOME)/modules/lib/malloc.o
|
|
|
|
LLIBS = $(INPLIB) $(PRTLIB) $(STRLIB) $(ALLOCLIB) $(MALLOC) $(SYSLIB)
|
|
|
|
|
|
|
|
CFLAGS = -I$(EMHOME)/modules/h -I$(EMHOME)/modules/pkg -I/usr/include
|
|
|
|
|
|
|
|
.SUFFIXES: .str .h
|
|
|
|
.str.h:
|
|
|
|
$(LPASS1)/make.allocd <$*.str >$*.h
|
|
|
|
|
1988-07-08 22:24:06 +00:00
|
|
|
SRC = lpass2.c read.c
|
|
|
|
OBJ = lpass2.o read.o
|
|
|
|
|
|
|
|
test: lpass2
|
|
|
|
make lint
|
|
|
|
|
|
|
|
lpass2: $(OBJ) Makefile next.o
|
|
|
|
$(CC) $(COPTIONS) $(LDFLAGS) $(OBJ) next.o $(LLIBS) -o lpass2
|
1988-05-30 17:17:16 +00:00
|
|
|
size lpass2
|
|
|
|
|
|
|
|
lint:
|
1988-07-08 22:24:06 +00:00
|
|
|
../lint $(CFLAGS) $(SRC) next.c #???
|
1988-05-30 17:17:16 +00:00
|
|
|
|
|
|
|
next.c: inpdef.str
|
|
|
|
$(LPASS1)/make.next inpdef.str > next.c
|
|
|
|
|
1988-07-08 22:24:06 +00:00
|
|
|
tags: $(SRC)
|
|
|
|
ctags $(SRC)
|
|
|
|
|
1988-05-30 17:17:16 +00:00
|
|
|
clean:
|
1988-07-08 22:24:06 +00:00
|
|
|
rm -f a.out core next.c inpdef.h $(OBJ) next.o
|
1988-05-30 17:17:16 +00:00
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
1988-07-08 22:24:06 +00:00
|
|
|
lpass2.o: ../lpass1/errout.h ../lpass1/lint.h ../lpass1/l_class.h inpdef.h
|