From 57af094e9fea3a8e2ad7822b1c5336d0b63e4bca Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 24 Jun 2009 20:57:34 +0000 Subject: Fix a problem that was causing tools/incdir.sh to generate inappropriate paths for Cygwin tools git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1941 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/binfmt/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'nuttx/binfmt/Makefile') diff --git a/nuttx/binfmt/Makefile b/nuttx/binfmt/Makefile index 30a2fb260..0ba0c2862 100644 --- a/nuttx/binfmt/Makefile +++ b/nuttx/binfmt/Makefile @@ -35,7 +35,10 @@ -include $(TOPDIR)/Make.defs -CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh "$(CC)" $(TOPDIR)/sched} +ifeq ($(WINTOOL),y) +INCDIROPT = -w +endif +CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/sched} ifeq ($(CONFIG_NXFLAT),y) include libnxflat/Make.defs @@ -81,7 +84,7 @@ $(BIN): $(OBJS) .depend: Makefile $(SRCS) @$(MKDEP) --dep-path . --dep-path libnxflat \ - $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep + $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep @touch $@ depend: .depend -- cgit v1.2.3