2011-04-09 21:47:35 +00:00
|
|
|
|
|
|
|
MODULE := devtools
|
|
|
|
|
|
|
|
MODULE_DIRS += \
|
|
|
|
devtools/
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# Tools directory
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
DEVTOOLS := \
|
|
|
|
devtools/convbdf$(EXEEXT) \
|
|
|
|
devtools/md5table$(EXEEXT) \
|
|
|
|
devtools/make-scumm-fontdata$(EXEEXT)
|
|
|
|
|
2019-01-06 14:46:58 +00:00
|
|
|
include $(srcdir)/devtools/*/module.mk
|
2011-04-09 21:47:35 +00:00
|
|
|
|
2019-01-06 14:46:58 +00:00
|
|
|
.PHONY: $(srcdir)/devtools/*/module.mk
|
2011-04-09 21:47:35 +00:00
|
|
|
|
|
|
|
# Make sure the 'all' / 'clean' targets build/clean the devtools, too
|
|
|
|
#all:
|
|
|
|
clean: clean-devtools
|
|
|
|
|
|
|
|
# Main target
|
|
|
|
devtools: $(DEVTOOLS)
|
|
|
|
|
|
|
|
clean-devtools:
|
|
|
|
-$(RM) $(DEVTOOLS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build rules for the devtools
|
|
|
|
#
|
|
|
|
|
2012-01-06 13:52:58 +00:00
|
|
|
devtools/convbdf$(EXEEXT): $(srcdir)/devtools/convbdf.cpp
|
2011-04-09 21:47:35 +00:00
|
|
|
$(QUIET)$(MKDIR) devtools/$(DEPDIR)
|
2012-01-06 13:52:58 +00:00
|
|
|
$(QUIET_LINK)$(LD) $(CXXFLAGS) -Wall -o $@ $<
|
2011-04-09 21:47:35 +00:00
|
|
|
|
|
|
|
devtools/md5table$(EXEEXT): $(srcdir)/devtools/md5table.c
|
|
|
|
$(QUIET)$(MKDIR) devtools/$(DEPDIR)
|
|
|
|
$(QUIET_LINK)$(LD) $(CFLAGS) -Wall -o $@ $<
|
|
|
|
|
|
|
|
devtools/make-scumm-fontdata$(EXEEXT): $(srcdir)/devtools/make-scumm-fontdata.c
|
|
|
|
$(QUIET)$(MKDIR) devtools/$(DEPDIR)
|
|
|
|
$(QUIET_LINK)$(LD) $(CFLAGS) -Wall -o $@ $<
|
|
|
|
|
2016-09-05 23:43:25 +00:00
|
|
|
# Rule to explicitly rebuild the wwwroot archive
|
|
|
|
wwwroot:
|
|
|
|
$(srcdir)/devtools/make-www-archive.py $(srcdir)/dists/networking/
|
2019-11-03 19:35:38 +00:00
|
|
|
|
2016-09-05 23:43:25 +00:00
|
|
|
|
2011-04-09 21:47:35 +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...
|
|
|
|
#
|
|
|
|
|
|
|
|
credits:
|
|
|
|
$(srcdir)/devtools/credits.pl --text > $(srcdir)/AUTHORS
|
|
|
|
# $(srcdir)/devtools/credits.pl --rtf > $(srcdir)/Credits.rtf
|
|
|
|
$(srcdir)/devtools/credits.pl --cpp > $(srcdir)/gui/credits.h
|
2020-10-12 12:46:49 +00:00
|
|
|
$(srcdir)/devtools/credits.pl --yaml > $(srcdir)/../scummvm-web/data/en/credits.yaml
|
2011-04-09 21:47:35 +00:00
|
|
|
|
|
|
|
md5scumm: devtools/md5table$(EXEEXT)
|
|
|
|
devtools/md5table$(EXEEXT) --c++ < $(srcdir)/devtools/scumm-md5.txt > $(srcdir)/engines/scumm/scumm-md5.h
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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 devtools can't (automatically) be
|
|
|
|
# run for some reason.
|
|
|
|
#
|
|
|
|
|
|
|
|
#scumm/scumm-md5.h: $(srcdir)/devtools/scumm-md5.txt devtools/md5table$(EXEEXT)
|
|
|
|
# devtools/md5table$(EXEEXT) --c++ < $< > $@
|
|
|
|
|
|
|
|
#AUTHORS: $(srcdir)/devtools/credits.pl
|
|
|
|
# $(srcdir)/devtools/credits.pl --text > $@
|
|
|
|
|
|
|
|
#gui/credits.h: $(srcdir)/devtools/credits.pl
|
|
|
|
# $(srcdir)/devtools/credits.pl --cpp > $@
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean-devtools devtools credits md5scumm
|