diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-20 22:07:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-20 22:07:56 +0000 |
commit | 60051cba0cf424e01ef2eda09816ee8945867b6d (patch) | |
tree | 506ffc7c368b1b0756a12099b0f2401e56ea4496 /apps/examples/usbserial | |
parent | f6f8f750c7a25d123dc6f20902b38bcda1c95963 (diff) | |
download | nuttx-60051cba0cf424e01ef2eda09816ee8945867b6d.tar.gz nuttx-60051cba0cf424e01ef2eda09816ee8945867b6d.tar.bz2 nuttx-60051cba0cf424e01ef2eda09816ee8945867b6d.zip |
More build fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3407 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/usbserial')
-rw-r--r-- | apps/examples/usbserial/Makefile | 6 | ||||
-rw-r--r-- | apps/examples/usbserial/Makefile.host | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/apps/examples/usbserial/Makefile b/apps/examples/usbserial/Makefile index 61fba5244..2ac0cb085 100644 --- a/apps/examples/usbserial/Makefile +++ b/apps/examples/usbserial/Makefile @@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) -BIN = ../../libapps$(LIBEXT) +BIN = $(APPDIR)/libapps$(LIBEXT) ROOTDEPPATH = --dep-path . @@ -81,9 +81,9 @@ $(BIN): $(OBJS) depend: .depend clean: - @rm -f $(BIN) *.o *~ .*.swp .built + @rm -f *.o *~ .*.swp .built $(call CLEAN) - @(MAKE) -f Makefile.host clean TOPDIR=$(TOPDIR) APPDIR=$(APPDIR) + @$(MAKE) -f Makefile.host clean TOPDIR=$(TOPDIR) APPDIR=$(APPDIR) distclean: clean @rm -f Make.dep .depend diff --git a/apps/examples/usbserial/Makefile.host b/apps/examples/usbserial/Makefile.host index 8c8884b42..cd9319ab3 100644 --- a/apps/examples/usbserial/Makefile.host +++ b/apps/examples/usbserial/Makefile.host @@ -39,7 +39,7 @@ -include $(TOPDIR)/Make.defs SRC = host.c -BIN = host +BIN = host$(EXEEXT) DEFINES = ifeq ($(CONFIG_EXAMPLES_USBSERIAL_INONLY),y) @@ -55,12 +55,13 @@ ifeq ($(CONFIG_EXAMPLES_USBSERIAL_ONLYBIG),y) DEFINES += -DCONFIG_EXAMPLES_USBSERIAL_ONLYBIG=1 endif -all: $(BIN)$(EXEEXT) +all: $(BIN) -$(BIN)$(EXEEXT): $(SRC) +$(BIN): $(SRC) @$(HOSTCC) $(HOSTCFLAGS) $(DEFINES) $^ -o $@ clean: @rm -f $(BIN) *~ .*.swp *.o $(call CLEAN) + |