]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/geom/ConfCmp/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / geom / ConfCmp / Makefile
1 # $FreeBSD$
2
3 PROG=   ConfCmp
4 SRCS+=  ConfCmp.c
5 SRCS+=  subr_sbuf.c
6
7 .PATH:  ../../../../sys/kern
8
9 NO_OBJ=
10 WARNS?= 5
11 CFLAGS+=         -g -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -static
12 # Uncomment for ElectricFence
13 #LDADD += -lefence -L/usr/local/lib
14
15 DPADD += ${LIBBSDXML}
16 LDADD += -lbsdxml
17
18 NO_MAN=
19 CLEANFILES      += _*
20
21 .include <bsd.prog.mk>
22
23 test:   ${PROG}
24         rm -f _* *.core
25         ./${PROG} a1.conf a1.conf
26         ./${PROG} a1.conf a1a.conf 
27         if ./${PROG} a1.conf a1b.conf > /dev/null 2>&1 ; then exit 1 ; fi
28         if ./${PROG} a1.conf a1c.conf > /dev/null 2>&1 ; then exit 1 ; fi
29         if ./${PROG} a1.conf a1d.conf > /dev/null 2>&1 ; then exit 1 ; fi
30         ./${PROG} a2.conf a2.conf
31         ./${PROG} a2.conf a2a.conf
32         if ./${PROG} a2.conf a2b.conf > /dev/null 2>&1 ; then exit 1 ; fi
33         if ./${PROG} a2.conf a2c.conf > /dev/null 2>&1 ; then exit 1 ; fi
34         if ./${PROG} a2.conf a2d.conf > /dev/null 2>&1 ; then exit 1 ; fi
35