diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-07 18:16:01 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-07 18:16:01 +0000 |
commit | 2c8eb70c5e9a50ddd7f2444f68643e51d8eb0c61 (patch) | |
tree | 08ae4f86eca39a9773166637952e6320de51faf4 /nuttx/drivers/Makefile | |
parent | 2c9001b17ff62f61be1677ebd789f081324fe326 (diff) | |
download | px4-nuttx-2c8eb70c5e9a50ddd7f2444f68643e51d8eb0c61.tar.gz px4-nuttx-2c8eb70c5e9a50ddd7f2444f68643e51d8eb0c61.tar.bz2 px4-nuttx-2c8eb70c5e9a50ddd7f2444f68643e51d8eb0c61.zip |
Make sure z16f still builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1154 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/Makefile')
-rw-r--r-- | nuttx/drivers/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/nuttx/drivers/Makefile b/nuttx/drivers/Makefile index df5c838f8..9f8344621 100644 --- a/nuttx/drivers/Makefile +++ b/nuttx/drivers/Makefile @@ -35,6 +35,8 @@ -include $(TOPDIR)/Make.defs +COMPILER = ${shell basename $(CC)} + ifeq ($(CONFIG_NET),y) include net/Make.defs ROOTDEPPATH = --dep-path . @@ -45,13 +47,25 @@ ifeq ($(CONFIG_USBDEV),y) include usbdev/Make.defs ROOTDEPPATH = --dep-path . USBDEVDEPPATH = --dep-path usbdev -CFLAGS += -I$(TOPDIR)/drivers/usbdev +ifeq ($(COMPILER),zneocc.exe) +USBDEVDIR = ${shell cygpath -w $(TOPDIR)/drivers/usbdev} +CFLAGS += -usrinc:'$(USBDEVDIR)' +else +USBDEVDIR = $(TOPDIR)/drivers/usbdev +CFLAGS += -I$(USBDEVDIR) +endif endif include mmcsd/Make.defs ROOTDEPPATH = --dep-path . MMCSDDEPPATH = --dep-path mmcsd -CFLAGS += -I$(TOPDIR)/drivers/mmcsd +ifeq ($(COMPILER),zneocc.exe) +MMCSDDIR = ${shell cygpath -w $(TOPDIR)/drivers/mmcsd} +CFLAGS += -usrinc:'$(MMCSDDIR)' +else +MMCSDDIR = $(TOPDIR)/drivers/mmcsd +CFLAGS += -I$(MMCSDDIR) +endif ASRCS = $(NET_ASRCS) $(USBDEV_ASRCS) $(MMCSD_ASRCS) AOBJS = $(ASRCS:.S=$(OBJEXT)) |