| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
include ../../../local/default.mk |
| 20 |
|
| 21 |
LINC = . |
| 22 |
XWLIB = $(X11_LIBPATH) -lX11 |
| 23 |
XMLIB = $(X11_LIBPATH) $(MOTIF_LIBPATH) $(X_LIBS) |
| 24 |
|
| 25 |
CFLAGS += $(C_OPT) $(DEBUG) $(LSYS) $(SYS) $(EDITFLAGS) $(OSSYS) $(UNDEFS) -I$(LINC) -I$(INC) $(X11INC) $(XMINC) |
| 26 |
|
| 27 |
.for.f: |
| 28 |
rm -f $*.f |
| 29 |
cp $< $*.f |
| 30 |
.for.o: |
| 31 |
rm -f $*.f |
| 32 |
cp $< $*.f |
| 33 |
$(F77) $(FFLAGS) $*.f |
| 34 |
rm -f $*.f |
| 35 |
|
| 36 |
|
| 37 |
all: |
| 38 |
|
| 39 |
testc.exe: testc.o |
| 40 |
$(LDCC) testc.o $(SLIB) -o $@ |
| 41 |
|
| 42 |
testsiz.exe: testsiz.o |
| 43 |
$(LDCC) testsiz.o $(SLIB) -o $@ |
| 44 |
|
| 45 |
testncurs.exe: testncurs.o |
| 46 |
$(LDCC) testncurs.o -lncurses $(SLIB) -o $@ |
| 47 |
|
| 48 |
testf.exe: testf.o |
| 49 |
$(LD77_CMD) testf.o $(SLIB) -o $@ |
| 50 |
|
| 51 |
testlib.a: testc.o testf.o |
| 52 |
$(AR) $(AR_OPT) testlib.a testc.o testf.o |
| 53 |
|
| 54 |
testx11.exe: testx11.o |
| 55 |
$(LDCC) testx11.o $(XWLIB) $(SLIB) -o $@ |
| 56 |
|
| 57 |
motif_rel.exe: testxm.o |
| 58 |
$(LDCC) testxm.o $(SLIB) -o $@ |
| 59 |
|
| 60 |
testxm.exe: testxm.o |
| 61 |
$(LDCC) testxm.o $(XMLIB) $(SLIB) -o $@ |
| 62 |
|
| 63 |
oserror.exe: oserror.o |
| 64 |
$(LDCC) oserror.o $(SLIB) -o $@ |
| 65 |
|
| 66 |
string.exe: string.o |
| 67 |
$(LDCC) string.o $(SLIB) -o $@ |
| 68 |
|
| 69 |
fmod.exe: fmod.o |
| 70 |
$(LDCC) fmod.o -lm $(SLIB) -o $@ |
| 71 |
|
| 72 |
math.exe: mathf.o mathc.o |
| 73 |
$(LD77_CMD) mathf.o mathc.o $(SLIB) -o $@ |
| 74 |
|
| 75 |
testxm.o: testxm.c |
| 76 |
$(CC) $(CFLAGS) -D_NO_PROTO -c $< |
| 77 |
|
| 78 |
testvar.o: testvar.c |
| 79 |
$(CC) $(CFLAGS) -D_NO_PROTO -c $< |
| 80 |
|
| 81 |
clean: |
| 82 |
rm -f *.exe |
| 83 |
rm -f *.f |
| 84 |
rm -f *.o |
| 85 |
rm -f *.a |