Makefile 562 Bytes
Newer Older
dcw's avatar
dcw committed
1
2
3
4
5
6
7
8
9
10
INC		=	/vol/lab/include
CFLAGS		=	-I$(INC) -g -UDEBUGGING
TESTEXECS	=	mtest ctest
AUTOCRAP	=	mtest.* mx.* ctest.* cx.?

all:	$(TESTEXECS)

clean:
	/bin/rm -f *.o a.out core $(TESTEXECS) $(AUTOCRAP)

11
12
cx.c cx.h:	cdata.in ../src/datadec
	../src/datadec cx cdata.in
dcw's avatar
dcw committed
13
14
15
16
17
18
19
20

cx.o:	cx.c cx.h

ctest.o:	ctest.c cx.h

ctest:	ctest.o cx.o
	cc -o ctest ctest.o cx.o

21
22
mx.def mx.mod:	m2data.in ../src/m2datadec
	../src/m2datadec mx m2data.in
dcw's avatar
dcw committed
23
24
25
26
27
28
29
30
31

mx.sym:		mx.def 

mx.o:		mx.mod mx.sym 

mtest.o:	mtest.mod mx.sym 

mtest:	mtest.o mx.o
	m2c $(M2FLAGS) $(M2LINKFLAGS) -o mtest -e mtest