diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2007-03-18 15:37:07 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2007-03-18 15:37:07 +0000 |
commit | 4e690646a79464178bbb3367c068ce4230d0303d (patch) | |
tree | a44bd1222184dd4f856f4b4270cf9819f157d102 /usr.bin/make | |
parent | 8b8ddeb427826bd368aaf021c710bfd7a3408f46 (diff) |
allow this to build w/ cross-tools thru providing proper hostcflags; found by rainor's work
Diffstat (limited to 'usr.bin/make')
-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} |