File: makefile

package info (click to toggle)
macutils 2.0b3-17.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,264 kB
  • sloc: ansic: 12,737; makefile: 661
file content (51 lines) | stat: -rwxr-xr-x 1,070 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
CFLAGS = -O $(CF)

SRCS  =	binhex.c dofile.c

OBJS  =	binhex.o dofile.o

LIB =	../crc/libcrc.a
TNAME =	../util/transname
BNAME = ../util/backtrans
UNAME =	../util/util
INAME = ../fileio/rdfile
GNAME =	../fileio/fileglob
XOBJS =	$(TNAME).o $(BNAME).o $(UNAME).o $(INAME).o $(GNAME).o
XSRCS =	$(TNAME).c $(BNAME).c $(UNAME).c $(INAME).c $(GNAME).c

binhex:	$(OBJS) $(XOBJS) $(LIB)
	$(CC) $(CFLAGS) -o binhex $(OBJS) $(XOBJS) $(LIB)

$(LIB):	../crc/makecrc.c
	(cd ../crc; make CC=$(CC) CF="$(CF)" )

$(TNAME).o:	$(TNAME).c
	(cd ../util; make CC=$(CC) CF="$(CF)" )

$(BNAME).o:	$(BNAME).c
	(cd ../util; make CC=$(CC) CF="$(CF)" )

$(UNAME).o:	$(UNAME).c
	(cd ../util; make CC=$(CC) CF="$(CF)" )

$(INAME).o:	$(INAME).c
	(cd ../fileio; make CC=$(CC) CF="$(CF)" )

$(GNAME).o:	$(GNAME).c
	(cd ../fileio; make CC=$(CC) CF="$(CF)" )

lint:
	lint $(CF) $(LFLAGS) $(SRCS) $(XSRCS)

clean:
	-rm -f *.o

clobber:clean
	-rm -f binhex

binhex.o:	../fileio/machdr.h
binhex.o:	../fileio/rdfile.h
binhex.o:	../util/patchlevel.h
dofile.o:	../fileio/machdr.h
dofile.o:	../fileio/rdfile.h