| 1 |
CFLAGS = -O $(CF) |
| 2 |
|
| 3 |
SRCS1 = macsave.c \ |
| 4 |
globals.c \ |
| 5 |
macbinary.c \ |
| 6 |
dir.c \ |
| 7 |
mcb.c |
| 8 |
|
| 9 |
SRCS2 = macstream.c |
| 10 |
|
| 11 |
OBJS1 = macsave.o \ |
| 12 |
globals.o \ |
| 13 |
macbinary.o \ |
| 14 |
dir.o \ |
| 15 |
mcb.o |
| 16 |
|
| 17 |
OBJS2 = macstream.o |
| 18 |
|
| 19 |
TNAME = ../util/transname |
| 20 |
BNAME = ../util/backtrans |
| 21 |
UNAME = ../util/util |
| 22 |
ONAME = ../fileio/wrfile |
| 23 |
INAME = ../fileio/rdfile |
| 24 |
GNAME = ../fileio/fileglob |
| 25 |
XOBJS1= $(TNAME).o $(UNAME).o $(ONAME).o $(GNAME).o |
| 26 |
XSRCS1= $(TNAME).c $(UNAME).c $(ONAME).c $(GNAME).c |
| 27 |
XOBJS2= $(TNAME).o $(BNAME).o $(UNAME).o $(INAME).o $(GNAME).o |
| 28 |
XSRCS2= $(TNAME).c $(BNAME).c $(UNAME).c $(INAME).c $(GNAME).c |
| 29 |
|
| 30 |
all: macsave macstream |
| 31 |
touch all |
| 32 |
|
| 33 |
macsave: $(OBJS1) $(XOBJS1) |
| 34 |
$(CC) $(CFLAGS) -o macsave $(OBJS1) $(XOBJS1) |
| 35 |
|
| 36 |
macstream: $(OBJS2) $(XOBJS2) |
| 37 |
$(CC) $(CFLAGS) -o macstream $(OBJS2) $(XOBJS2) |
| 38 |
|
| 39 |
$(TNAME).o: $(TNAME).c |
| 40 |
(cd ../util; make CC=$(CC) CF="$(CF)" ) |
| 41 |
|
| 42 |
$(BNAME).o: $(BNAME).c |
| 43 |
(cd ../util; make CC=$(CC) CF="$(CF)" ) |
| 44 |
|
| 45 |
$(UNAME).o: $(UNAME).c |
| 46 |
(cd ../util; make CC=$(CC) CF="$(CF)" ) |
| 47 |
|
| 48 |
$(ONAME).o: $(ONAME).c |
| 49 |
(cd ../fileio; make CC=$(CC) CF="$(CF)" ) |
| 50 |
|
| 51 |
$(INAME).o: $(INAME).c |
| 52 |
(cd ../fileio; make CC=$(CC) CF="$(CF)" ) |
| 53 |
|
| 54 |
$(GNAME).o: $(GNAME).c |
| 55 |
(cd ../fileio; make CC=$(CC) CF="$(CF)" ) |
| 56 |
|
| 57 |
lint: |
| 58 |
lint $(CF) $(LFLAGS) $(SRCS1) $(XSRCS1) |
| 59 |
lint $(CF) $(LFLAGS) $(SRCS2) $(XSRCS2) |
| 60 |
|
| 61 |
clean: |
| 62 |
-rm -f *.o |
| 63 |
|
| 64 |
clobber:clean |
| 65 |
-rm -f all macsave macstream |
| 66 |
|
| 67 |
macsave.o: globals.h |
| 68 |
macsave.o: ../util/patchlevel.h |
| 69 |
macsave.o: ../fileio/wrfile.h |
| 70 |
macsave.o: ../fileio/wrfileopt.h |
| 71 |
macsave.o: ../util/util.h |
| 72 |
globals.o: globals.h |
| 73 |
globals.o: ../fileio/machdr.h |
| 74 |
macbinary.o: globals.h |
| 75 |
macbinary.o: ../fileio/machdr.h |
| 76 |
macbinary.o: ../fileio/kind.h |
| 77 |
macbinary.o: ../util/util.h |
| 78 |
dir.o: globals.h |
| 79 |
dir.o: ../fileio/machdr.h |
| 80 |
dir.o: ../fileio/wrfile.h |
| 81 |
dir.o: ../util/util.h |
| 82 |
dir.o: ../util/masks.h |
| 83 |
mcb.o: globals.h |
| 84 |
mcb.o: ../fileio/machdr.h |
| 85 |
mcb.o: ../fileio/wrfile.h |
| 86 |
mcb.o: ../util/masks.h |
| 87 |
mcb.o: ../util/util.h |
| 88 |
macstream.o: ../fileio/machdr.h |
| 89 |
macstream.o: ../fileio/rdfile.h |
| 90 |
macstream.o: ../fileio/rdfileopt.h |
| 91 |
macstream.o: ../util/patchlevel.h |
| 92 |
|