Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / tests / Makefile
blob4662fe8723934c4f3516f6d9673878e8d77f7c81
1 NOGCCERROR:= yes
3 BINDIR?= /usr/tests/minix-posix
4 FILESDIR?= /usr/tests/minix-posix
5 WARNS?= 1
7 # Tests have no manpages
8 MKMAN= no
10 # They are all bin-owned; by default normal executable mode
11 BINOWN= bin
13 # Needed by testsh1.sh
14 FILES= test1.c
16 CFLAGS+= -fno-builtin
17 LDADD+= -lm
19 .include <bsd.own.mk>
21 SUBDIR+= blocktest
22 SUBDIR+= ddekit
23 SUBDIR+= rmibtest
25 # Some have special flags compiling
26 CPPFLAGS.test56.c += -D_MINIX_SYSTEM=1
28 COPTS.test9.c= -O0
29 COPTS.test37.c= -O0
30 COPTS.test53.c= -O0
31 COPTS.test68.c= -O0
33 # Some have special libraries
34 LDADD.test59= -lmthread
35 LDADD.test76= -lutil
36 LDADD.test77= -lutil
38 # Some have an extra file
39 OBJS.test57= test57loop.o
40 OBJS.test56+= common-socket.o
41 OBJS.test80+= common-socket.o
42 OBJS.test81+= common-socket.o
44 # Cache testing programs
45 OBJS.test71+= testcache.o
46 OBJS.test72+= testcache.o
47 OBJS.test74+= testcache.o
48 LDADD.test72+= -lminixfs
50 PROGS += testvm
51 OBJS.testvm+= testcache.o
52 LDSTATIC.testvm= -static
53 LDADD.testvm+= -lsys -ltimers
55 FILES += testvm.conf
57 # Network stack testing programs
58 OBJS.test90+= socklib.o
59 OBJS.test91+= socklib.o
60 OBJS.test92+= socklib.o
61 OBJS.test93+= socklib.o
62 # Uncomment the following lines to use SOCKLIB_SWEEP_GENERATE=1/2 in socklib.c
63 #.PATH: ${NETBSDSRCDIR}/minix/usr.bin/trace
64 #OBJS.test90+= error.o
65 #OBJS.test91+= error.o
66 #OBJS.test92+= error.o
67 #OBJS.test93+= error.o
69 .if ${USE_INET6} == "no"
70 # Tests 91-94 will fail without IPv6 support, but they should at least compile.
71 CPPFLAGS.socklib.c += -DNO_INET6
72 CPPFLAGS.test94.c += -DNO_INET6
73 .endif # ${USE_INET6} == "no"
75 # Tests to compile, For every architecture
76 MINIX_TESTS= \
77 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
78 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
79 41 42 43 44 45 46 48 49 50 52 53 54 55 56 58 59 60 \
80 61 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 \
81 81 82 83 84 85 86 87 88 89 90 91 92 93 94
83 FILES += t84_h_nonexec.sh
85 .if ${MACHINE_ARCH} == "i386"
86 MINIX_TESTS+= \
87 47 51 57 \
89 .endif # ${MACHINE_ARCH} == "i386"
91 .for t in ${MINIX_TESTS}
92 PROGS+= test${t}
93 .endfor
95 PROGS+= t10a t11a t11b t40a t40b t40c t40d t40e t40f t40g t60a t60b \
96 t67a t67b t68a t68b tvnd t84_h_spawn t84_h_spawnattr
98 SCRIPTS+= run check-install testinterp.sh testsh1.sh testsh2.sh testmfs.sh \
99 testisofs.sh testvnd.sh testkyua.sh testrelpol.sh testrmib.sh
101 # test57loop.S is not linked into the .bcl file.
102 # This way, we can link it in when linking the final binary
103 LDADD.test57+= ${${USE_BITCODE:Uno} != "no":? test57loop.o -Wl,-allow-multiple-definition:}
105 .if ${MKPIC} == "yes"
106 # Build them as dynamic executables by default if shared libraries
107 # are available; so that the building and executing of dynamic
108 # executables is tested
109 LDSTATIC= -dynamic
111 LDFLAGS.mod+= -shared # make shared object
113 # Files which have to be compiled with -fPIC
114 mod.o: mod.c
115 ${COMPILE.c} -fPIC ${.IMPSRC}
117 common.o: common.c
118 ${COMPILE.c} -fPIC ${.IMPSRC}
120 # Add test that must be linked dynamically, and its dynamically loaded
121 # module
122 PROGS+= test63 mod
123 .endif # ${MKPIC} == "yes"
125 .for o in ${PROGS}
126 OBJS.${o} += common.o
127 .endfor
129 .include "./arch/${MACHINE_ARCH}/Makefile.inc"
131 # LSC Make sure there is not leftover after a failed testrun
132 clean: .PHONY .MAKE
133 @rm -rf DIR*
135 .include <bsd.prog.mk>
136 .include <bsd.subdir.mk>