2005-01-11 22:02:05 +00:00
|
|
|
MODULE := tools
|
|
|
|
|
|
|
|
MODULE_DIRS += \
|
2006-06-24 08:48:11 +00:00
|
|
|
tools/
|
2005-01-11 22:02:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# Tools directory
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
TOOLS := tools/convbdf$(EXEEXT) tools/md5table$(EXEEXT)
|
|
|
|
|
|
|
|
|
|
|
|
# Make sure the 'all' / 'clean' targets build/clean the tools, too
|
|
|
|
all: tools
|
|
|
|
clean: clean-tools
|
|
|
|
|
|
|
|
# Main target
|
|
|
|
tools: $(TOOLS)
|
|
|
|
|
|
|
|
clean-tools:
|
|
|
|
-$(RM) $(TOOLS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build rules for the tools
|
|
|
|
#
|
|
|
|
|
|
|
|
tools/convbdf$(EXEEXT): $(srcdir)/tools/convbdf.c
|
|
|
|
$(MKDIR) tools/$(DEPDIR)
|
2006-10-21 20:41:49 +00:00
|
|
|
$(CC) $(CFLAGS) -Wall -o $@ $<
|
2005-01-11 22:02:05 +00:00
|
|
|
|
|
|
|
tools/md5table$(EXEEXT): $(srcdir)/tools/md5table.c
|
|
|
|
$(MKDIR) tools/$(DEPDIR)
|
2006-10-21 20:41:49 +00:00
|
|
|
$(CC) $(CFLAGS) -Wall -o $@ $<
|
2005-01-11 22:02:05 +00:00
|
|
|
|
|
|
|
#
|
2006-05-30 09:58:21 +00:00
|
|
|
# Rules to explicitly rebuild the credits / MD5 tables.
|
|
|
|
# The rules for the files in the "web" resp. "docs" modules
|
|
|
|
# assume that you are invoking "make" from within a complete
|
|
|
|
# checkout of the ScummVM repository. Of course if that is not the
|
|
|
|
# case, then you have to modify those paths...
|
2005-01-11 22:02:05 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
credits:
|
2006-09-29 11:22:18 +00:00
|
|
|
$(srcdir)/tools/credits.pl --text > AUTHORS
|
|
|
|
$(srcdir)/tools/credits.pl --rtf > Credits.rtf
|
|
|
|
$(srcdir)/tools/credits.pl --cpp > gui/credits.h
|
|
|
|
$(srcdir)/tools/credits.pl --html > ../../web/trunk/credits.inc
|
|
|
|
$(srcdir)/tools/credits.pl --xml > ../../docs/trunk/docbook/credits.xml
|
2005-01-11 22:02:05 +00:00
|
|
|
|
|
|
|
md5scumm: tools/md5table$(EXEEXT)
|
2006-02-12 02:21:03 +00:00
|
|
|
tools/md5table$(EXEEXT) --c++ < $(srcdir)/tools/scumm-md5.txt > engines/scumm/scumm-md5.h
|
2007-03-10 03:17:09 +00:00
|
|
|
tools/md5table$(EXEEXT) --php < $(srcdir)/tools/scumm-md5.txt > ../../web/trunk/docs/md5.inc
|
2005-01-11 22:02:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Rules which automatically and implicitly rebuild the credits and
|
|
|
|
# MD5 tables when needed.
|
|
|
|
# These are currently disabled, because if the input data changes, then
|
|
|
|
# the generated files should be checked in, too. Otherwise, we'd reduce
|
|
|
|
# portability to system on which our tools can't (automatically) be
|
|
|
|
# run for some reason.
|
|
|
|
#
|
|
|
|
|
|
|
|
#scumm/scumm-md5.h: $(srcdir)/tools/scumm-md5.txt tools/md5table$(EXEEXT)
|
|
|
|
# tools/md5table$(EXEEXT) --c++ < $< > $@
|
|
|
|
|
|
|
|
#AUTHORS: $(srcdir)/tools/credits.pl
|
|
|
|
# $(srcdir)/tools/credits.pl --text > $@
|
|
|
|
|
|
|
|
#gui/credits.h: $(srcdir)/tools/credits.pl
|
|
|
|
# $(srcdir)/tools/credits.pl --cpp > $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean-tools tools credits md5scumm md5simon
|