xref: /freebsd/tools/regression/geom/ConfCmp/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
131304807SPoul-Henning KampPROG=	ConfCmp
231304807SPoul-Henning KampSRCS+=	ConfCmp.c
331304807SPoul-Henning KampSRCS+=	subr_sbuf.c
45624b2d4SPoul-Henning Kamp
55624b2d4SPoul-Henning Kamp.PATH:	../../../../sys/kern
65624b2d4SPoul-Henning Kamp
7e653b48cSRuslan ErmilovNO_OBJ=
820e61691SJohan KarlssonWARNS?=	5
931304807SPoul-Henning KampCFLAGS+=	 -g -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -static
1031304807SPoul-Henning Kamp# Uncomment for ElectricFence
1131304807SPoul-Henning Kamp#LDADD += -lefence -L/usr/local/lib
1231304807SPoul-Henning Kamp
13*eacae6dcSBryan DreweryLIBADD= bsdxml
1431304807SPoul-Henning Kamp
153bdf7758SWarner LoshMAN=
1631304807SPoul-Henning KampCLEANFILES	+= _*
1731304807SPoul-Henning Kamp
1831304807SPoul-Henning Kamp.include <bsd.prog.mk>
1931304807SPoul-Henning Kamp
2031304807SPoul-Henning Kamptest:	${PROG}
2131304807SPoul-Henning Kamp	rm -f _* *.core
2200d1e0f6SPoul-Henning Kamp	./${PROG} a1.conf a1.conf
2331304807SPoul-Henning Kamp	./${PROG} a1.conf a1a.conf
2431304807SPoul-Henning Kamp	if ./${PROG} a1.conf a1b.conf > /dev/null 2>&1 ; then exit 1 ; fi
2531304807SPoul-Henning Kamp	if ./${PROG} a1.conf a1c.conf > /dev/null 2>&1 ; then exit 1 ; fi
2631304807SPoul-Henning Kamp	if ./${PROG} a1.conf a1d.conf > /dev/null 2>&1 ; then exit 1 ; fi
2700d1e0f6SPoul-Henning Kamp	./${PROG} a2.conf a2.conf
2800d1e0f6SPoul-Henning Kamp	./${PROG} a2.conf a2a.conf
2900d1e0f6SPoul-Henning Kamp	if ./${PROG} a2.conf a2b.conf > /dev/null 2>&1 ; then exit 1 ; fi
3000d1e0f6SPoul-Henning Kamp	if ./${PROG} a2.conf a2c.conf > /dev/null 2>&1 ; then exit 1 ; fi
3100d1e0f6SPoul-Henning Kamp	if ./${PROG} a2.conf a2d.conf > /dev/null 2>&1 ; then exit 1 ; fi
326de2a2e8SPoul-Henning Kamp
33