summaryrefslogtreecommitdiffstats
path: root/nuttx/binfmt
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-06-24 20:57:34 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2009-06-24 20:57:34 +0000
commitb8992780f7035d7f1e2da8316f2ec2e5cf491c96 (patch)
treea7c471e781e21ecdb704e78aa4ca3e1cae625ca8 /nuttx/binfmt
parent56bf88acd2f567629a35c441034eb904b0e8f51e (diff)
Fix a problem that was causing tools/incdir.sh to generate inappropriate paths for Cygwin tools
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1941 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/binfmt')
-rw-r--r--nuttx/binfmt/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/binfmt/Makefile b/nuttx/binfmt/Makefile
index 30a2fb2605..0ba0c28622 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