summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-24 12:08:25 +0000
committertruelight <truelight@openttd.org>2006-08-24 12:08:25 +0000
commit76bcaba6011b4a3a3f2c3dcd65e3438bb46b79f0 (patch)
tree90e4385ba5c5f0ec5803661e46a5dbdf086057c6 /Makefile
parentd14ac4478d35f7ae9b7ced6e78673a27a85fc878 (diff)
downloadopenttd-76bcaba6011b4a3a3f2c3dcd65e3438bb46b79f0.tar.xz
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 379f92ab2..9d73e5a09 100644
--- a/Makefile
+++ b/Makefile
@@ -879,17 +879,17 @@ $(TTD): $(OBJS) $(MAKE_CONFIG)
$(Q)$(CXX_TARGET) $(LDFLAGS) $(TTDLDFLAGS) $(OBJS) $(LIBS) -o $@
endif
-$(STRGEN): strgen/strgen.c endian_host.h
+$(STRGEN): strgen/strgen.c string.c endian_host.h
@echo '===> Compiling and Linking $@'
- $(Q)$(CC_HOST) $(CFLAGS_HOST) $(CDEFS) $< -o $@
+ $(Q)$(CC_HOST) $(CFLAGS_HOST) -DSTRGEN strgen/strgen.c string.c -o $@
table/strings.h: lang/english.txt $(STRGEN)
@echo '===> Generating $@'
- $(Q)$(STRGEN)
+ $(Q)$(STRGEN) -s lang -d table
lang/%.lng: lang/%.txt $(STRGEN) lang/english.txt
@echo '===> Compiling language $(*F)'
- $(Q)$(STRGEN) $(STRGEN_FLAGS) $< $(LANG_ERRORS) || rm -f $@
+ $(Q)$(STRGEN) $(STRGEN_FLAGS) -s lang -d lang $< $(LANG_ERRORS) || rm -f $@
# stupid KUDr doesn't know how to setup unittest dependencies (so rm,cp,rm)
# please don't blame him and repair it: