Last change
on this file was
5872,
checked in by westram, 16 years ago
|
- Changed variable transfer to sub-makefiles
- most variables are now exported via environment (using SOURCE_TOOLS/export2sub or AISC/export2sub)
- only variables that contain different values for different sub-makefile-calls are passed by cl (e.g. cflags, MAIN)
- changed flavour of exported variables (recursively expanded → simply expanded variables). Please use VAR := VALUE in Makefiles (not VAR = VALUE). See http://www.gnu.org/software/make/manual/html_node/Flavors.html#Flavors for details
- removed/fixed all undefined variables in Makefiles (using 'make —warn-undefined-variables')
- changed names of compile-logs generated in GDE subdir
- added target 'xmlin' (broken, print warning)
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | |
---|
2 | ARCHS_ALL = \ |
---|
3 | glpng/libglpng_arb.dummy \ |
---|
4 | glAW/libglAW.dummy \ |
---|
5 | |
---|
6 | # -------------------------------------------------------------------------------- |
---|
7 | # If a package is available as debian package it should go here |
---|
8 | |
---|
9 | ARCHS_NON_DEBIAN = \ |
---|
10 | |
---|
11 | # -------------------------------------------------------------------------------- |
---|
12 | |
---|
13 | ifdef DEBIAN |
---|
14 | ARCHS = $(ARCHS_ALL) |
---|
15 | else |
---|
16 | ARCHS = $(ARCHS_ALL) $(ARCHS_NON_DEBIAN) |
---|
17 | endif |
---|
18 | |
---|
19 | # -------------------------------------------------------------------------------- |
---|
20 | # warnings in this subtree? |
---|
21 | |
---|
22 | RAISE_WARNINGS=1 |
---|
23 | |
---|
24 | ifeq ($(RAISE_WARNINGS),0) |
---|
25 | CPP:=$(CPP:-W -Wall=-w) |
---|
26 | ACC:=$(ACC:-W -Wall=-w) |
---|
27 | endif |
---|
28 | |
---|
29 | include $(ARBHOME)/SOURCE_TOOLS/export2sub |
---|
30 | |
---|
31 | # -------------------------------------------------------------------------------- |
---|
32 | |
---|
33 | $(MAIN): $(ARCHS) |
---|
34 | |
---|
35 | depends: $(ARCHS:.dummy=.depend) |
---|
36 | |
---|
37 | clean: $(ARCHS:.dummy=.clean) |
---|
38 | |
---|
39 | %.depend: |
---|
40 | @cp -p $(@D)/Makefile $(@D)/Makefile.old # save old Makefile |
---|
41 | @$(MAKE) -C $(@D) -r depends |
---|
42 | @grep "^# DO NOT DELETE" $(@D)/Makefile >/dev/null # check whether sub Makefile has dependencies |
---|
43 | @cat $(@D)/Makefile \ |
---|
44 | | ../SOURCE_TOOLS/fix_depends.pl \ |
---|
45 | >$(@D)/Makefile.2 |
---|
46 | @mv $(@D)/Makefile.old $(@D)/Makefile # restore old Makefile |
---|
47 | @$(ARBHOME)/SOURCE_TOOLS/mv_if_diff $(@D)/Makefile.2 $(@D)/Makefile # update Makefile if changed |
---|
48 | |
---|
49 | %.dummy: |
---|
50 | @$(MAKE) -C $(@D) -r \ |
---|
51 | "ARB = yes" \ |
---|
52 | "MAIN = $(@F:.dummy=.a)" \ |
---|
53 | "cflags = $(cflags) -DIN_ARB_$(@D:/=)" \ |
---|
54 | |
---|
55 | %.clean: |
---|
56 | @$(MAKE) -C $(@D) \ |
---|
57 | clean |
---|
58 | |
---|
59 | # DO NOT DELETE |
---|
60 | |
---|
61 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
62 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl |
---|
Note: See
TracBrowser
for help on using the repository browser.