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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330612

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>