summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-24 20:57:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-06-24 20:57:34 +0000
commit57af094e9fea3a8e2ad7822b1c5336d0b63e4bca (patch)
treea7c471e781e21ecdb704e78aa4ca3e1cae625ca8 /nuttx/binfmt/Makefile
parent38add3698930bde72d1548097b95334f0be449f1 (diff)
downloadpx4-nuttx-57af094e9fea3a8e2ad7822b1c5336d0b63e4bca.tar.gz
px4-nuttx-57af094e9fea3a8e2ad7822b1c5336d0b63e4bca.tar.bz2
px4-nuttx-57af094e9fea3a8e2ad7822b1c5336d0b63e4bca.zip
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
Diffstat (limited to 'nuttx/binfmt/Makefile')
-rw-r--r--nuttx/binfmt/Makefile7
1 files changed, 5 insertions, 2 deletions
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