summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm32f4discovery/src/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-21 19:54:44 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-21 19:54:44 +0000
commit3689d913ceb2bb52b808e0e5598e83bcfdd88134 (patch)
tree8d04a7378abacc76fc1078ee585c593f141ecc64 /nuttx/configs/stm32f4discovery/src/Makefile
parent14a77ec91b12454c9106836b3d4a08c63a098e1d (diff)
downloadpx4-nuttx-3689d913ceb2bb52b808e0e5598e83bcfdd88134.tar.gz
px4-nuttx-3689d913ceb2bb52b808e0e5598e83bcfdd88134.tar.bz2
px4-nuttx-3689d913ceb2bb52b808e0e5598e83bcfdd88134.zip
/configs/stm32f4discovery/winbuild and configs/cloudctrl upated to use Mike's Toolchain.defs; Fix error introduced into tools/configure.sh
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5380 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm32f4discovery/src/Makefile')
-rw-r--r--nuttx/configs/stm32f4discovery/src/Makefile58
1 files changed, 31 insertions, 27 deletions
diff --git a/nuttx/configs/stm32f4discovery/src/Makefile b/nuttx/configs/stm32f4discovery/src/Makefile
index 82ea0d1dd..68419e5d0 100644
--- a/nuttx/configs/stm32f4discovery/src/Makefile
+++ b/nuttx/configs/stm32f4discovery/src/Makefile
@@ -35,83 +35,87 @@
-include $(TOPDIR)/Make.defs
-CFLAGS += -I$(TOPDIR)/sched
+CFLAGS += -I$(TOPDIR)/sched
-ASRCS =
-AOBJS = $(ASRCS:.S=$(OBJEXT))
+ASRCS =
+AOBJS = $(ASRCS:.S=$(OBJEXT))
-CSRCS = up_boot.c up_spi.c
+CSRCS = up_boot.c up_spi.c
ifeq ($(CONFIG_HAVE_CXX),y)
-CSRCS += up_cxxinitialize.c
+CSRCS += up_cxxinitialize.c
endif
ifeq ($(CONFIG_ARCH_LEDS),y)
-CSRCS += up_autoleds.c
+CSRCS += up_autoleds.c
else
-CSRCS += up_userleds.c
+CSRCS += up_userleds.c
endif
ifeq ($(CONFIG_ARCH_BUTTONS),y)
-CSRCS += up_buttons.c
+CSRCS += up_buttons.c
endif
ifeq ($(CONFIG_STM32_OTGFS),y)
-CSRCS += up_usb.c
+CSRCS += up_usb.c
endif
ifeq ($(CONFIG_PWM),y)
-CSRCS += up_pwm.c
+CSRCS += up_pwm.c
endif
ifeq ($(CONFIG_QENCODER),y)
-CSRCS += up_qencoder.c
+CSRCS += up_qencoder.c
endif
ifeq ($(CONFIG_WATCHDOG),y)
-CSRCS += up_watchdog.c
+CSRCS += up_watchdog.c
endif
ifeq ($(CONFIG_NSH_ARCHINIT),y)
-CSRCS += up_nsh.c
+CSRCS += up_nsh.c
endif
ifeq ($(CONFIG_PM_CUSTOMINIT),y)
-CSRCS += up_pm.c
+CSRCS += up_pm.c
endif
ifeq ($(CONFIG_PM_BUTTONS),y)
-CSRCS += up_pmbuttons.c
+CSRCS += up_pmbuttons.c
endif
ifeq ($(CONFIG_IDLE_CUSTOM),y)
-CSRCS += up_idle.c
+CSRCS += up_idle.c
endif
ifeq ($(CONFIG_STM32_FSMC),y)
-CSRCS += up_extmem.c
+CSRCS += up_extmem.c
ifeq ($(CONFIG_LCD_SSD1289),y)
-CSRCS += up_ssd1289.c
+CSRCS += up_ssd1289.c
endif
endif
ifeq ($(CONFIG_LCD_UG2864AMBAG01),y)
-CSRCS += up_ug2864ambag01.c
+CSRCS += up_ug2864ambag01.c
endif
-COBJS = $(CSRCS:.c=$(OBJEXT))
+COBJS = $(CSRCS:.c=$(OBJEXT))
-SRCS = $(ASRCS) $(CSRCS)
-OBJS = $(AOBJS) $(COBJS)
+SRCS = $(ASRCS) $(CSRCS)
+OBJS = $(AOBJS) $(COBJS)
-ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
+ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+ CFLAGS += -I$(ARCH_SRCDIR)\chip -I$(ARCH_SRCDIR)\common -I$(ARCH_SRCDIR)\armv7-m
+else
ifeq ($(WINTOOL),y)
- CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/chip}" \
- -I "${shell cygpath -w $(ARCH_SRCDIR)/common}" \
- -I "${shell cygpath -w $(ARCH_SRCDIR)/armv7-m}"
+ CFLAGS += -I "${shell cygpath -w $(ARCH_SRCDIR)/chip}" \
+ -I "${shell cygpath -w $(ARCH_SRCDIR)/common}" \
+ -I "${shell cygpath -w $(ARCH_SRCDIR)/armv7-m}"
else
- CFLAGS += -I$(ARCH_SRCDIR)/chip -I$(ARCH_SRCDIR)/common -I$(ARCH_SRCDIR)/armv7-m
+ CFLAGS += -I$(ARCH_SRCDIR)/chip -I$(ARCH_SRCDIR)/common -I$(ARCH_SRCDIR)/armv7-m
+endif
endif
all: libboard$(LIBEXT)