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 (92 lines) | stat: -rwxr-xr-x 1,981 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
CFLAGS = -O $(CF)

SRCS1 =	macsave.c \
	globals.c \
	macbinary.c \
	dir.c \
	mcb.c

SRCS2 =	macstream.c

OBJS1 =	macsave.o \
	globals.o \
	macbinary.o \
	dir.o \
	mcb.o

OBJS2 =	macstream.o

TNAME =	../util/transname
BNAME = ../util/backtrans
UNAME =	../util/util
ONAME =	../fileio/wrfile
INAME = ../fileio/rdfile
GNAME =	../fileio/fileglob
XOBJS1=	$(TNAME).o $(UNAME).o $(ONAME).o $(GNAME).o
XSRCS1=	$(TNAME).c $(UNAME).c $(ONAME).c $(GNAME).c
XOBJS2=	$(TNAME).o $(BNAME).o $(UNAME).o $(INAME).o $(GNAME).o
XSRCS2=	$(TNAME).c $(BNAME).c $(UNAME).c $(INAME).c $(GNAME).c

all:	macsave macstream
	touch all

macsave:	$(OBJS1) $(XOBJS1)
	$(CC) $(CFLAGS) -o macsave $(OBJS1) $(XOBJS1)

macstream:	$(OBJS2) $(XOBJS2)
	$(CC) $(CFLAGS) -o macstream $(OBJS2) $(XOBJS2)

$(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)" )

$(ONAME).o:	$(ONAME).c
	(cd ../fileio; 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) $(SRCS1) $(XSRCS1)
	lint $(CF) $(LFLAGS) $(SRCS2) $(XSRCS2)

clean:
	-rm -f *.o

clobber:clean
	-rm -f all macsave macstream

macsave.o:	globals.h
macsave.o:	../util/patchlevel.h
macsave.o:	../fileio/wrfile.h
macsave.o:	../fileio/wrfileopt.h
macsave.o:	../util/util.h
globals.o:	globals.h
globals.o:	../fileio/machdr.h
macbinary.o:	globals.h
macbinary.o:	../fileio/machdr.h
macbinary.o:	../fileio/kind.h
macbinary.o:	../util/util.h
dir.o:	globals.h
dir.o:	../fileio/machdr.h
dir.o:	../fileio/wrfile.h
dir.o:	../util/util.h
dir.o:	../util/masks.h
mcb.o:	globals.h
mcb.o:	../fileio/machdr.h
mcb.o:	../fileio/wrfile.h
mcb.o:	../util/masks.h
mcb.o:	../util/util.h
macstream.o:	../fileio/machdr.h
macstream.o:	../fileio/rdfile.h
macstream.o:	../fileio/rdfileopt.h
macstream.o:	../util/patchlevel.h