-
Notifications
You must be signed in to change notification settings - Fork 5
/
GNUmakefile
65 lines (51 loc) · 1.64 KB
/
GNUmakefile
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
top_srcdir=.
include GNUmakefile.cmn
include Makefile.sil
SUBDIRS = common tools bios vdi bdos aes desk system glue
EXTRA_DIST1 = \
Makefile \
Makefile.cmn \
Makefile.sil \
config.mak \
$(empty)
EXTRA_DIST2 = \
GNUmakefile \
GNUmakefile.cmn \
$(empty)
all::
@:
include $(top_srcdir)/config.mak
FLAGSTOPASS = COUNTRY=$(COUNTRY) TOSVERSION=$(TOSVERSION)
dist::
rm -rf $(DISTDIR1) $(DISTDIR2)
for i in $(SUBDIRS) lib; do $(MKDIR_P) $(DISTDIR1)/$$i; done
for i in $(SUBDIRS) $(EXTRA_SUBDIRS) listings; do $(MKDIR_P) $(DISTDIR2)/$$i; done
all dist::
for i in $(SUBDIRS); do $(MAKE) -C $$i $(FLAGSTOPASS) $@ || exit 1; done
clean distclean::
for i in $(SUBDIRS); do $(MAKE) -C $$i $(FLAGSTOPASS) $@; done
dist::
for i in $(EXTRA_SUBDIRS); do $(MAKE) -C $$i $@; done
check::
for i in $(SUBDIRS); do $(MAKE) --no-print-directory -C $$i $(FLAGSTOPASS) all; done
for i in $(SUBDIRS); do $(MAKE) --no-print-directory -C $$i $(FLAGSTOPASS) $@; done
maps:
for version in 104 106 162; do \
for lang in us de fr es it se sf sg nl; do \
$(MAKE) clean; \
$(MAKE) SYMBOLS=-s TOSVERSION=$${version} COUNTRY=$${lang} || exit 1; \
cnm glue/tos.img | sort | uniq > glue/tos$${version}$${lang}.map; \
done; \
done
$(MAKE) clean
$(RM) glue/*.img glue/glue.*
help::
@echo ""
@echo "targets:"
@echo " all - build default configuration TOSVERSION=$(TOSVERSION) COUNTRY=$(COUNTRY)"
@echo " clean - remove temporary files"
@echo " distclean - remove all generated files"
@echo ""
@echo "The resulting output file will be glue/tos$(TOSVERSION)$(COUNTRY).img"
@echo ""
@echo "See $(top_srcdir)/config.mak for a list of valid configurations"