release.sh: restore -jJAILDIR option
[minix.git] / test / Makefile
blob805e71523f231b9ae20e074c066a3f164730615c
1 DBG=-O0 -g
2 CFLAGS+= -Wall -Werror -D_NETBSD_SOURCE -fno-builtin -D_MINIX -D_POSIX_SOURCE
3 LDADD+= -lm -lcompat_minix
5 # Tests have no manpages
6 MKMAN=no
8 # They are all bin-owned; by default normal executable mode
9 BINOWN=root
11 # Some have special flags compiling
12 CFLAGS.test51=-mhard-float
13 CFLAGS.test52=-mhard-float
15 # Some have special libraries
16 LDADD.test59= -lmthread
17 LDFLAGS.mod= -shared # make shared object
19 # Some have an extra file
20 OBJS.test57=test57loop.o
22 .for t in \
23 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
24 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
25 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 \
26 61 62 64 65
27 PROG+= test$(t)
28 .endfor
30 PROG+= t10a t11a t11b t40a t40b t40c t40d t40e t40f t60a t60b
32 .include <bsd.own.mk>
34 .if $(MKPIC) == "yes"
35 # Build them as dynamic executables by default if shared libraries
36 # are available; so that the building and executing of dynamic
37 # executables is tested
38 LDSTATIC= -dynamic
40 # Add test that must be linked dynamically, and its dynamically loaded
41 # module
42 PROG+= test63 mod
43 .endif
45 .include <bsd.prog.mk>
47 # Some are suid-root
48 all:
49 chmod 4755 test11 test33 test43 test44 test46 test56 test60 test61 \
50 test65
52 clean: .PHONY .MAKE
53 $(MAKE) -C select clean
54 rm -rf *.o *.s *.bak test? test?? t10a t11a t11b \
55 t40a t40b t40c t40d t40e t40f \
56 t60a t60b \
57 DIR*