2012-04-08 19:22:02 +02:00
|
|
|
DBG=-O0 -g
|
|
|
|
CFLAGS+= -Wall -Werror -D_NETBSD_SOURCE -fno-builtin -D_MINIX -D_POSIX_SOURCE
|
|
|
|
LDADD+= -lm -lcompat_minix
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
# Tests have no manpages
|
|
|
|
MKMAN=no
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
# They are all bin-owned; by default normal executable mode
|
|
|
|
BINOWN=root
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
# Some have special flags compiling
|
|
|
|
CFLAGS.test51=-mhard-float
|
|
|
|
CFLAGS.test52=-mhard-float
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
# Some have special libraries
|
|
|
|
LDADD.test59= -lmthread
|
2012-04-08 19:22:02 +02:00
|
|
|
LDFLAGS.mod= -shared # make shared object
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
# Some have an extra file
|
|
|
|
OBJS.test57=test57loop.o
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
.for t in \
|
|
|
|
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 \
|
2012-11-09 16:50:31 +01:00
|
|
|
61 62 64
|
2012-04-08 19:22:02 +02:00
|
|
|
PROG+= test$(t)
|
|
|
|
.endfor
|
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
PROG+= t10a t11a t11b t40a t40b t40c t40d t40e t40f t60a t60b
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.if $(MKPIC) == "yes"
|
|
|
|
# Build them as dynamic executables by default if shared libraries
|
|
|
|
# are available; so that the building and executing of dynamic
|
|
|
|
# executables is tested
|
2012-10-26 15:22:39 +02:00
|
|
|
LDSTATIC?= -dynamic
|
2012-04-08 19:22:02 +02:00
|
|
|
|
|
|
|
# Add test that must be linked dynamically, and its dynamically loaded
|
|
|
|
# module
|
|
|
|
PROG+= test63 mod
|
|
|
|
.endif
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
.include <bsd.prog.mk>
|
2011-04-21 15:20:13 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
# Some are suid-root
|
|
|
|
all:
|
|
|
|
chmod 4755 test11 test33 test43 test44 test46 test56 test60 test61
|
2011-04-21 15:20:13 +02:00
|
|
|
|
2012-04-08 19:22:02 +02:00
|
|
|
clean: .PHONY .MAKE
|
2010-06-22 14:03:09 +02:00
|
|
|
$(MAKE) -C select clean
|
2012-04-08 19:22:02 +02:00
|
|
|
rm -rf *.o *.s *.bak test? test?? t10a t11a t11b \
|
2012-02-17 17:12:44 +01:00
|
|
|
t40a t40b t40c t40d t40e t40f \
|
2011-11-28 11:03:43 +01:00
|
|
|
t60a t60b \
|
|
|
|
DIR*
|