Debian Codegraph @

binhex/makefile

raw
1 CFLAGS = -O $(CF)
2
3 SRCS = binhex.c dofile.c
4
5 OBJS = binhex.o dofile.o
6
7 LIB = ../crc/libcrc.a
8 TNAME = ../util/transname
9 BNAME = ../util/backtrans
10 UNAME = ../util/util
11 INAME = ../fileio/rdfile
12 GNAME = ../fileio/fileglob
13 XOBJS = $(TNAME).o $(BNAME).o $(UNAME).o $(INAME).o $(GNAME).o
14 XSRCS = $(TNAME).c $(BNAME).c $(UNAME).c $(INAME).c $(GNAME).c
15
16 binhex: $(OBJS) $(XOBJS) $(LIB)
17 $(CC) $(CFLAGS) -o binhex $(OBJS) $(XOBJS) $(LIB)
18
19 $(LIB): ../crc/makecrc.c
20 (cd ../crc; make CC=$(CC) CF="$(CF)" )
21
22 $(TNAME).o: $(TNAME).c
23 (cd ../util; make CC=$(CC) CF="$(CF)" )
24
25 $(BNAME).o: $(BNAME).c
26 (cd ../util; make CC=$(CC) CF="$(CF)" )
27
28 $(UNAME).o: $(UNAME).c
29 (cd ../util; make CC=$(CC) CF="$(CF)" )
30
31 $(INAME).o: $(INAME).c
32 (cd ../fileio; make CC=$(CC) CF="$(CF)" )
33
34 $(GNAME).o: $(GNAME).c
35 (cd ../fileio; make CC=$(CC) CF="$(CF)" )
36
37 lint:
38 lint $(CF) $(LFLAGS) $(SRCS) $(XSRCS)
39
40 clean:
41 -rm -f *.o
42
43 clobber:clean
44 -rm -f binhex
45
46 binhex.o: ../fileio/machdr.h
47 binhex.o: ../fileio/rdfile.h
48 binhex.o: ../util/patchlevel.h
49 dofile.o: ../fileio/machdr.h
50 dofile.o: ../fileio/rdfile.h
51