diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-10 16:45:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-10 16:45:32 +0000 |
commit | 2019608ec3476613f63451cd544c4522df3e1d38 (patch) | |
tree | 08757e92a62231fd5f4fbc64e8125e500b9ab9a9 /nuttx/examples/usbserial/Makefile.host | |
parent | 2e3c93708f069c2a6ef0511e12ba12282ae7ed6b (diff) | |
download | px4-nuttx-2019608ec3476613f63451cd544c4522df3e1d38.tar.gz px4-nuttx-2019608ec3476613f63451cd544c4522df3e1d38.tar.bz2 px4-nuttx-2019608ec3476613f63451cd544c4522df3e1d38.zip |
Extended USB serial test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1025 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/usbserial/Makefile.host')
-rw-r--r-- | nuttx/examples/usbserial/Makefile.host | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/nuttx/examples/usbserial/Makefile.host b/nuttx/examples/usbserial/Makefile.host index ea394090b..0997ce81c 100644 --- a/nuttx/examples/usbserial/Makefile.host +++ b/nuttx/examples/usbserial/Makefile.host @@ -33,16 +33,30 @@ # ############################################################################ --include $(TOPDIR)/.config --include $(TOPDIR)/Make.defs +include $(TOPDIR)/.config +include $(TOPDIR)/Make.defs SRC = host.c BIN = host +DEFINES = +ifeq ($(CONFIG_EXAMPLES_USBSERIAL_INONLY),y) +DEFINES += -DCONFIG_EXAMPLES_USBSERIAL_INONLY=1 +endif +ifeq ($(CONFIG_EXAMPLES_USBSERIAL_OUTONLY),y) +DEFINES += -DCONFIG_EXAMPLES_USBSERIAL_OUTONLY=1 +endif +ifeq ($(CONFIG_EXAMPLES_USBSERIAL_ONLYSMALL),y) +DEFINES += -DCONFIG_EXAMPLES_USBSERIAL_ONLYSMALL=1 +endif +ifeq ($(CONFIG_EXAMPLES_USBSERIAL_ONLYBIG),y) +DEFINES += -DCONFIG_EXAMPLES_USBSERIAL_ONLYBIG=1 +endif + all: $(BIN)$(EXEEXT) $(BIN)$(EXEEXT): $(SRC) - $(HOSTCC) $(HOSTCFLAGS) $^ -o $@ + $(HOSTCC) $(HOSTCFLAGS) $(DEFINES) $^ -o $@ clean: @rm -f $(BIN) *~ .*.swp *.o |