summaryrefslogtreecommitdiff
path: root/nuttx/drivers
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-07 19:11:27 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-07 19:11:27 +0000
commit779556a689e16cb40e464737c31fb10333c605bd (patch)
tree4579e3cb248a1d195fb04c3bb698b6894a1b88c2 /nuttx/drivers
parent2c8eb70c5e9a50ddd7f2444f68643e51d8eb0c61 (diff)
downloadpx4-nuttx-779556a689e16cb40e464737c31fb10333c605bd.tar.gz
px4-nuttx-779556a689e16cb40e464737c31fb10333c605bd.tar.bz2
px4-nuttx-779556a689e16cb40e464737c31fb10333c605bd.zip
Handler compiler differences
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1155 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers')
-rw-r--r--nuttx/drivers/Makefile16
1 files changed, 2 insertions, 14 deletions
diff --git a/nuttx/drivers/Makefile b/nuttx/drivers/Makefile
index 9f8344621..a4a3c826d 100644
--- a/nuttx/drivers/Makefile
+++ b/nuttx/drivers/Makefile
@@ -47,25 +47,13 @@ ifeq ($(CONFIG_USBDEV),y)
include usbdev/Make.defs
ROOTDEPPATH = --dep-path .
USBDEVDEPPATH = --dep-path usbdev
-ifeq ($(COMPILER),zneocc.exe)
-USBDEVDIR = ${shell cygpath -w $(TOPDIR)/drivers/usbdev}
-CFLAGS += -usrinc:'$(USBDEVDIR)'
-else
-USBDEVDIR = $(TOPDIR)/drivers/usbdev
-CFLAGS += -I$(USBDEVDIR)
-endif
+CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh "$CC" $(TOPDIR)/drivers/usbdev}
endif
include mmcsd/Make.defs
ROOTDEPPATH = --dep-path .
MMCSDDEPPATH = --dep-path mmcsd
-ifeq ($(COMPILER),zneocc.exe)
-MMCSDDIR = ${shell cygpath -w $(TOPDIR)/drivers/mmcsd}
-CFLAGS += -usrinc:'$(MMCSDDIR)'
-else
-MMCSDDIR = $(TOPDIR)/drivers/mmcsd
-CFLAGS += -I$(MMCSDDIR)
-endif
+CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh "$CC" $(TOPDIR)/drivers/mmcsd}
ASRCS = $(NET_ASRCS) $(USBDEV_ASRCS) $(MMCSD_ASRCS)
AOBJS = $(ASRCS:.S=$(OBJEXT))