stand/ficl: Fix testmain

testmain is a userland application intended to be built with standard
headers and whatnot, which we broke.

Fix it by having the testmain build clobber cflags, reducing it to just the
set of defines/includes it needs to build.

Discussed with:	imp
MFC after:	3 days
This commit is contained in:
Kyle Evans 2018-03-07 17:18:46 +00:00
parent f9edb09d70
commit 14a2bd52f7

View File

@ -13,7 +13,8 @@ SRCS= ${BASE_SRCS} sysdep.c softcore.c
CLEANFILES+= softcore.c testmain testmain.o
.ifmake testmain
CFLAGS+= -DTESTMAIN -D_TESTMAIN
CFLAGS= -DTESTMAIN -D_TESTMAIN
CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC}
SRCS+= testmain.c
PROG= testmain
.include <bsd.prog.mk>