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