diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 09:17:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 09:17:23 -0600 |
commit | 14ba1f33ae8f55a3c7f556cf28647c7116b6c3c4 (patch) | |
tree | 20444f1055f8c11f92fa29978ed0b2bd3a9559f6 /apps/system/usbmsc | |
parent | fb7a08922178beb0cb053a00d1377366d4279e87 (diff) | |
download | px4-nuttx-14ba1f33ae8f55a3c7f556cf28647c7116b6c3c4.tar.gz px4-nuttx-14ba1f33ae8f55a3c7f556cf28647c7116b6c3c4.tar.bz2 px4-nuttx-14ba1f33ae8f55a3c7f556cf28647c7116b6c3c4.zip |
Changes to many Makefiles. For kernel buil object containing main cannot go into library because of name collisions. The object file must be handled as a special case in every Makefile
Diffstat (limited to 'apps/system/usbmsc')
-rw-r--r-- | apps/system/usbmsc/Makefile | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/apps/system/usbmsc/Makefile b/apps/system/usbmsc/Makefile index d01269730..7a2485dfc 100644 --- a/apps/system/usbmsc/Makefile +++ b/apps/system/usbmsc/Makefile @@ -39,27 +39,28 @@ include $(APPDIR)/Make.defs # USB device mass storage add-on -ASRCS = -CSRCS = usbmsc_main.c +ASRCS = +CSRCS = +MAINSRC = usbmsc_main.c -AOBJS = $(ASRCS:.S=$(OBJEXT)) -COBJS = $(CSRCS:.c=$(OBJEXT)) +AOBJS = $(ASRCS:.S=$(OBJEXT)) +COBJS = $(CSRCS:.c=$(OBJEXT)) MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) -SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) -OBJS = $(AOBJS) $(COBJS) +SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) +OBJS = $(AOBJS) $(COBJS) ifneq ($(CONFIG_BUILD_KERNEL),y) OBJS += $(MAINOBJ) endif ifeq ($(CONFIG_WINDOWS_NATIVE),y) - BIN = ..\..\libapps$(LIBEXT) + BIN = ..\..\libapps$(LIBEXT) else ifeq ($(WINTOOL),y) - BIN = ..\\..\\libapps$(LIBEXT) + BIN = ..\\..\\libapps$(LIBEXT) else - BIN = ../../libapps$(LIBEXT) + BIN = ../../libapps$(LIBEXT) endif endif @@ -72,24 +73,24 @@ endif CONFIG_XYZ_PROGNAME ?= usbmsc$(EXEEXT) PROGNAME = $(CONFIG_XYZ_PROGNAME) -ROOTDEPPATH = --dep-path . +ROOTDEPPATH = --dep-path . # USB storage built-in application info CONFIG_SYSTEM_USBMSC_CMD_STACKSIZE ?= 768 CONFIG_SYSTEM_USBMSC_CMD_PRIORITY ?= SCHED_PRIORITY_DEFAULT -APPNAME1 = msconn -PRIORITY1 = $(CONFIG_SYSTEM_USBMSC_CMD_PRIORITY) -STACKSIZE1 = $(CONFIG_SYSTEM_USBMSC_CMD_STACKSIZE) +APPNAME1 = msconn +PRIORITY1 = $(CONFIG_SYSTEM_USBMSC_CMD_PRIORITY) +STACKSIZE1 = $(CONFIG_SYSTEM_USBMSC_CMD_STACKSIZE) -APPNAME2 = msdis -PRIORITY2 = $(CONFIG_SYSTEM_USBMSC_CMD_PRIORITY) -STACKSIZE2 = $(CONFIG_SYSTEM_USBMSC_CMD_STACKSIZE) +APPNAME2 = msdis +PRIORITY2 = $(CONFIG_SYSTEM_USBMSC_CMD_PRIORITY) +STACKSIZE2 = $(CONFIG_SYSTEM_USBMSC_CMD_STACKSIZE) # Common build -VPATH = +VPATH = all: .built .PHONY: context clean depend distclean |