blob: 9e43900e02f27d6f7c075522554283fb4d3e3972 (
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
|
# $FreeBSD$
PROG = testprg
NOMAN = no
NOOBJ = youbet
CFLAGS += -g -W -Wall -Wstrict-prototypes -Wmissing-prototypes
CFLAGS += -Wpointer-arith -static -I/usr/src/sys -I../..
CFLAGS += -DKERNELSIM
LDADD += -L../../GLib -lG
LDADD += -L/usr/local/lib -lexpat
DPADD += ../../GLib/libG.a
CLEANFILES += _* *.core
WARNS= 2
foo:
echo ${SRCS}
echo ${OBJS}
ttest: ${PROG}
./${PROG} -t 2>&1 | tee _test
tbtest: ${PROG}
./${PROG} -t -b 2>&1 | tee _test
test: ${PROG}
./${PROG}
.if exists(ref.conf)
../../ConfCmp/ConfCmp _1.conf ref.conf
.endif
echo "Passed ${.CURDIR}"
mkref:
mv _1.conf ref.conf
gdb:
gdb ${PROG} ${PROG}.core
|