summaryrefslogtreecommitdiff
path: root/apps/graphics/traveler/tools/Makefile.host
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-12-15 07:16:16 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-12-15 07:16:16 -0600
commitc1fa1ec55e559219d1726194f0a4f97867a0763a (patch)
tree0c8e79aa8dd2b3cda7bf62a63e603db2810db9f3 /apps/graphics/traveler/tools/Makefile.host
parent4c9c3bea16e8a05c1d4a085884bca8a0135143c0 (diff)
downloadnuttx-c1fa1ec55e559219d1726194f0a4f97867a0763a.tar.gz
nuttx-c1fa1ec55e559219d1726194f0a4f97867a0763a.tar.bz2
nuttx-c1fa1ec55e559219d1726194f0a4f97867a0763a.zip
Traveler: Add another trivial plane management tool
Diffstat (limited to 'apps/graphics/traveler/tools/Makefile.host')
-rw-r--r--apps/graphics/traveler/tools/Makefile.host19
1 files changed, 16 insertions, 3 deletions
diff --git a/apps/graphics/traveler/tools/Makefile.host b/apps/graphics/traveler/tools/Makefile.host
index 862d638c8..e2116a2fd 100644
--- a/apps/graphics/traveler/tools/Makefile.host
+++ b/apps/graphics/traveler/tools/Makefile.host
@@ -70,16 +70,19 @@ endif
PLL2TXT_SRCS = pll2txt.c
PLL2TXT_OBJS = $(PLL2TXT_SRCS:.c=$(OBJEXT))
-OBJS = $(PLL2TXT_OBJS)
+TXT2PLL_SRCS = txt2pll.c
+TXT2PLL_OBJS = $(TXT2PLL_SRCS:.c=$(OBJEXT))
+
+OBJS = $(PLL2TXT_OBJS) $(TXT2PLL_OBJS)
# Targets
-all: pll2txt$(HOSTEXEEXT)
+all: pll2txt$(HOSTEXEEXT) txt2pll$(HOSTEXEEXT)
default: all
ifdef HOSTEXEEXT
-.PHONY: pll2txt clean
+.PHONY: pll2txt txt2pll clean
else
.PHONY: clean
endif
@@ -96,8 +99,18 @@ ifdef HOSTEXEEXT
pll2txt: pll2txt$(HOSTEXEEXT)
endif
+# txt2pll - Convert a text file into a world plane file
+
+txt2pll$(HOSTEXEEXT): $(TXT2PLL_OBJS)
+ $(Q) $(HOSTCC) $(HOSTCFLAGS) $< -o $@
+
+ifdef HOSTEXEEXT
+txt2pll: txt2pll$(HOSTEXEEXT)
+endif
+
clean:
$(call DELFILE, pll2txt$(HOSTEXEEXT))
+ $(call DELFILE, txt2pll$(HOSTEXEEXT))
ifneq ($(CONFIG_WINDOWS_NATIVE),y)
$(Q) rm -rf *.dSYM
endif