Last change
on this file was
11805,
checked in by westram, 11 years ago
|
- export 'LINUX' and 'REDHAT' to submakefiles
- use ifeq instead of ifdef (completes [11804])
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.6 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 | ifeq ($(DEBIAN),1) |
---|
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 | cflags:=$(cflags:-W -Wall=-w) |
---|
26 | endif |
---|
27 | |
---|
28 | include $(ARBHOME)/SOURCE_TOOLS/export2sub |
---|
29 | |
---|
30 | # -------------------------------------------------------------------------------- |
---|
31 | |
---|
32 | $(MAIN): $(ARCHS) |
---|
33 | |
---|
34 | depends: $(ARCHS:.dummy=.depend) |
---|
35 | |
---|
36 | clean: $(ARCHS:.dummy=.clean) |
---|
37 | |
---|
38 | %.depend: |
---|
39 | @cp -p $(@D)/Makefile $(@D)/Makefile.old # save old Makefile |
---|
40 | @$(MAKE) -C $(@D) -r depends |
---|
41 | @grep "^# DO NOT DELETE" $(@D)/Makefile >/dev/null # check whether sub Makefile has dependencies |
---|
42 | @cat $(@D)/Makefile \ |
---|
43 | | ../SOURCE_TOOLS/fix_depends.pl "(from GL)" \ |
---|
44 | >$(@D)/Makefile.2 |
---|
45 | @mv $(@D)/Makefile.old $(@D)/Makefile # restore old Makefile |
---|
46 | @$(ARBHOME)/SOURCE_TOOLS/mv_if_diff $(@D)/Makefile.2 $(@D)/Makefile # update Makefile if changed |
---|
47 | |
---|
48 | %.dummy: |
---|
49 | @$(MAKE) -C $(@D) -r \ |
---|
50 | "ARB = yes" \ |
---|
51 | "MAIN = $(@F:.dummy=.a)" \ |
---|
52 | "cflags = $(cflags) -DIN_ARB_$(@D:/=)" \ |
---|
53 | |
---|
54 | %.clean: |
---|
55 | @$(MAKE) -C $(@D) \ |
---|
56 | clean |
---|
57 | |
---|
58 | # DO NOT DELETE |
---|
59 | |
---|
60 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
61 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main) |
---|
Note: See
TracBrowser
for help on using the repository browser.