summaryrefslogtreecommitdiff
path: root/package/cfgfs/src/BSDmakefile
blob: e10aa1dbcbd74d0a42fcc17e3254ed94ba6218bb (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
SUBDIR+= lib
SUBDIR+= mkfwcf
SUBDIR+= unfwcf
SUBDIR+= tool
SUBDIR+= fwcf.helper

test: _SUBDIRUSE

.include <bsd.own.mk>
COPTS?=		# for OpenBSD
.if !${COPTS:M-fhonour-copts} || !${CFLAGS:M-fhonour-copts}
CFLAGS+=	${COPTS}
.endif

gmake:
	-rm -rf gmake_test
	mkdir -p gmake_test
	cd gmake_test && lndir -e gmake_test ${.CURDIR}
	cd gmake_test && CC=${CC:Q} CFLAGS=${CFLAGS:M*:Q} gmake

clean_gmake:
	-rm -rf gmake_test

.include <bsd.subdir.mk>

clean cleandir: clean_gmake