blob: 855b93dcd7765f70352a7591a67e768428c6bd6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
MODULE := tools
MODULE_DIRS += \
tools
#######################################################################
# 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)
$(CC) -Wall -o $@ $<
tools/md5table$(EXEEXT): $(srcdir)/tools/md5table.c
$(MKDIR) tools/$(DEPDIR)
$(CC) -Wall -o $@ $<
#
# Rules to explicitly rebuild the credits / MD5 tables
#
credits:
$(srcdir)/tools/credits.pl --text > AUTHORS
$(srcdir)/tools/credits.pl --tex > doc/10.tex
$(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
md5scumm: tools/md5table$(EXEEXT)
tools/md5table$(EXEEXT) --c++ < $(srcdir)/tools/scumm-md5.txt > engines/scumm/scumm-md5.h
tools/md5table$(EXEEXT) --php < $(srcdir)/tools/scumm-md5.txt > ../../web/trunk/docs/md5.inc
#
# 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
|