diff options
Diffstat (limited to 'usr.bin/make/Makefile')
-rw-r--r-- | usr.bin/make/Makefile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index eb84dd5b781..6fd4594126f 100644 --- a/usr.bin/make/Makefile +++ b/usr.bin/make/Makefile @@ -1,15 +1,19 @@ -# $OpenBSD: Makefile,v 1.39 2006/04/25 11:47:43 espie Exp $ +# $OpenBSD: Makefile,v 1.40 2007/03/18 15:37:06 mickey Exp $ PROG= make CFLAGS+= -I${.OBJDIR} -I${.CURDIR} +HOSTCFLAGS+= -I${.OBJDIR} -I${.CURDIR} CDIAGFLAGS=-Wall -W -Wno-char-subscripts -Wstrict-prototypes -pedantic \ -Wmissing-prototypes -CFLAGS+=-DUSE_TIMESPEC -CFLAGS+=-DHAS_BOOL_H -CFLAGS+=-DHAS_PATHS_H -CFLAGS+=-DHAS_EXTENDED_GETCWD -#CFLAGS+=-DHAS_STATS +CDEFS+=-DUSE_TIMESPEC +CDEFS+=-DHAS_BOOL_H +CDEFS+=-DHAS_PATHS_H +CDEFS+=-DHAS_EXTENDED_GETCWD +#CDEFS+=-DHAS_STATS + +CFLAGS+=${CDEFS} +HOSTCFLAGS+=${CDEFS} SRCS= arch.c buf.c cmd_exec.c compat.c cond.c dir.c error.c for.c \ init.c job.c lowparse.c main.c make.c memory.c parse.c \ @@ -38,7 +42,7 @@ condhashconsts.h: generate ${.OBJDIR}/generate 2 ${MAGICCONDSLOTS} >${.TARGET} generate: generate.c stats.c memory.c - ${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD} + ${HOSTCC} ${LDSTATIC} -o ${.TARGET} ${HOSTCFLAGS} ${.ALLSRC} ${LDADD} check: regress.o str.o memory.o buf.o ${CC} -o ${.TARGET} ${CFLAGS} ${.ALLSRC} ${LDADD} |