blob: b87462e7e6d5e29c5399ca916eba4a450827842a (
plain)
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
93
94
|
#
# @(#)Makefile 1.8 2003/12/29 Connectathon Testsuite
# 1.5 Lachman ONC Test Suite source
#
# to make tests, use 'make'
# to copy tests to another directory, use 'make copy DESTDIR=dir'
# to copy source to another directory, use 'make dist DESTDIR=dir'
TESTS = test1 test2 test3 test4 test5 test6 test7 test8 test9
AUXTESTS = test4a test5a test5b test7a test7b
DOSRUNFILES = scripts/*.bat scripts/*.mst scripts/*.prl
DOSBUILDFILES = console/*.bat console/*.mak dos/*.bat dos/*.mak
DOSFILES = $(DOSRUNFILES) $(DOSBUILDFILES)
DESTDIR = /no/such/path
INCLUDES=../tests.h
include ../tests.init
all: origtests auxtests
if test ! -x runtests; then chmod a+x runtests; fi
origtests: $(TESTS)
auxtests: $(AUXTESTS)
subr.o: subr.c $(INCLUDES)
test1: test1.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test2: test2.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test3: test3.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test4: test4.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test4a: test4a.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test5: test5.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test5a: test5a.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test5b: test5b.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test6: test6.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test7: test7.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test7a: test7a.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test7b: test7b.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test8: test8.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
test9: test9.c $(INCLUDES) subr.o
$(CC) $(CFLAGS) -o $@ $@.c subr.o $(LIBS)
lint:
lint $(CFLAGS) test1.c subr.c $(LIBS)
lint $(CFLAGS) test2.c subr.c $(LIBS)
lint $(CFLAGS) test3.c subr.c $(LIBS)
lint $(CFLAGS) test4.c subr.c $(LIBS)
lint $(CFLAGS) test4a.c subr.c $(LIBS)
lint $(CFLAGS) test5.c subr.c $(LIBS)
lint $(CFLAGS) test5a.c subr.c $(LIBS)
lint $(CFLAGS) test5b.c subr.c $(LIBS)
lint $(CFLAGS) test6.c subr.c $(LIBS)
lint $(CFLAGS) test7.c subr.c $(LIBS)
lint $(CFLAGS) test7a.c subr.c $(LIBS)
lint $(CFLAGS) test7b.c subr.c $(LIBS)
lint $(CFLAGS) test8.c subr.c $(LIBS)
lint $(CFLAGS) test9.c subr.c $(LIBS)
clean:
rm -f *.o $(TESTS) $(AUXTESTS)
copy: $(TESTS)
cp -f runtests runtests.mvs $(TESTS) $(AUXTESTS) $(DESTDIR)
dist:
cp -f runtests runtests.mvs Makefile *.c $(DESTDIR)
tar cf - $(DOSFILES) | (cd $(DESTDIR); tar xfBp -)
|