1985-04-12 14:01:20 +00:00
|
|
|
#
|
|
|
|
# Author: L.J. Bekema @ VU Informatica, Amsterdam
|
|
|
|
#
|
|
|
|
|
|
|
|
# Definitions for the making programs.
|
|
|
|
|
1987-08-06 18:40:02 +00:00
|
|
|
EMHOME = ../..
|
|
|
|
LIBDIR= $(EMHOME)/lib
|
1987-10-15 12:42:55 +00:00
|
|
|
MODLIBDIR = $(EMHOME)/modules/lib
|
1987-08-06 18:40:02 +00:00
|
|
|
PREFLAGS= -I$(EMHOME)/h -DNDEBUG -DNASSERT
|
1986-10-20 10:17:57 +00:00
|
|
|
CFLAGS = $(PREFLAGS) -O
|
1991-02-19 16:51:50 +00:00
|
|
|
LDFLAGS =
|
1987-10-15 12:42:55 +00:00
|
|
|
LDLIBS = $(MODLIBDIR)/libstring.a $(MODLIBDIR)/libobject.a
|
1986-10-20 10:17:57 +00:00
|
|
|
LINTFLAGS=-phbxa $(PREFLAGS)
|
1985-04-12 14:01:20 +00:00
|
|
|
PR = pr
|
|
|
|
PRFLAGS =
|
|
|
|
|
|
|
|
# Some convenient macro definitions.
|
|
|
|
|
1986-10-20 10:17:57 +00:00
|
|
|
CFILES = archive.c error.c extract.c finish.c main.c memory.c\
|
1985-04-12 14:01:20 +00:00
|
|
|
output.c read.c relocate.c save.c scan.c sym.c write.c
|
1985-05-13 11:09:53 +00:00
|
|
|
HFILES = assert.h const.h debug.h defs.h memory.h orig.h scan.h
|
1986-10-20 10:17:57 +00:00
|
|
|
OFILES = archive.o error.o extract.o finish.o main.o memory.o\
|
1985-04-12 14:01:20 +00:00
|
|
|
output.o read.o relocate.o save.o scan.o sym.o write.o
|
|
|
|
|
|
|
|
# Things that can be made.
|
|
|
|
|
|
|
|
led: $(OFILES)
|
|
|
|
$(CC) $(LDFLAGS) $(OFILES) $(LDLIBS) -o led
|
|
|
|
|
1985-05-13 11:09:53 +00:00
|
|
|
install:led
|
1987-08-06 18:40:02 +00:00
|
|
|
rm -f $(LIBDIR)/em_led $(EMHOME)/man/led.6 $(EMHOME)/man/ack.out.5
|
1985-05-13 11:09:53 +00:00
|
|
|
cp led $(LIBDIR)/em_led
|
1987-08-06 18:40:02 +00:00
|
|
|
cp led.6 $(EMHOME)/man/led.6
|
|
|
|
cp ack.out.5 $(EMHOME)/man/ack.out.5
|
1985-05-13 11:09:53 +00:00
|
|
|
|
|
|
|
cmp: led
|
|
|
|
cmp led $(LIBDIR)/em_led
|
|
|
|
|
1985-04-12 14:01:20 +00:00
|
|
|
lint:
|
|
|
|
lint $(LINTFLAGS) $(CFILES)
|
|
|
|
|
1986-10-20 10:17:57 +00:00
|
|
|
pr: $(CFILES) $(HFILES) mach.c
|
|
|
|
$(PR) $(PRFLAGS) $?
|
1985-04-12 14:01:20 +00:00
|
|
|
@touch pr
|
1985-05-13 11:09:53 +00:00
|
|
|
opr:
|
|
|
|
make pr | opr
|
|
|
|
|
|
|
|
clean:
|
1986-10-20 10:17:57 +00:00
|
|
|
rm -f Out *.o led nohup.out
|
1985-04-12 14:01:20 +00:00
|
|
|
|
|
|
|
depend:
|
|
|
|
makedepend $(CFILES)
|
|
|
|
|
|
|
|
# The next lines are generated automatically.
|
|
|
|
# AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
|
|
|
|
archive.o: const.h
|
|
|
|
archive.o: debug.h
|
|
|
|
archive.o: defs.h
|
|
|
|
archive.o: memory.h
|
|
|
|
error.o: const.h
|
|
|
|
extract.o: const.h
|
|
|
|
extract.o: debug.h
|
|
|
|
extract.o: defs.h
|
|
|
|
extract.o: memory.h
|
|
|
|
extract.o: orig.h
|
|
|
|
extract.o: scan.h
|
|
|
|
finish.o: const.h
|
|
|
|
finish.o: defs.h
|
|
|
|
finish.o: memory.h
|
|
|
|
finish.o: orig.h
|
|
|
|
finish.o: scan.h
|
|
|
|
main.o: const.h
|
|
|
|
main.o: debug.h
|
|
|
|
main.o: defs.h
|
|
|
|
main.o: memory.h
|
|
|
|
main.o: orig.h
|
|
|
|
memory.o: assert.h
|
|
|
|
memory.o: const.h
|
|
|
|
memory.o: debug.h
|
|
|
|
memory.o: mach.c
|
|
|
|
memory.o: memory.h
|
|
|
|
output.o: const.h
|
|
|
|
output.o: memory.h
|
|
|
|
read.o: assert.h
|
|
|
|
read.o: const.h
|
|
|
|
relocate.o: const.h
|
|
|
|
relocate.o: debug.h
|
|
|
|
relocate.o: defs.h
|
|
|
|
relocate.o: orig.h
|
|
|
|
save.o: assert.h
|
|
|
|
save.o: const.h
|
|
|
|
save.o: memory.h
|
|
|
|
scan.o: assert.h
|
|
|
|
scan.o: const.h
|
|
|
|
scan.o: memory.h
|
|
|
|
scan.o: scan.h
|
|
|
|
sym.o: const.h
|
|
|
|
sym.o: memory.h
|
|
|
|
write.o: assert.h
|
|
|
|
write.o: const.h
|
|
|
|
write.o: memory.h
|
|
|
|
write.o: orig.h
|