From c1fa1ec55e559219d1726194f0a4f97867a0763a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 15 Dec 2014 07:16:16 -0600 Subject: Traveler: Add another trivial plane management tool --- apps/graphics/traveler/tools/Makefile.host | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'apps/graphics/traveler/tools/Makefile.host') 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 -- cgit v1.2.3