source: branches/help/GL/Makefile

Last change on this file was 18729, checked in by westram, 3 years ago
  • eliminate trailing whitespace from Makefiles.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1
2ARCHS_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
9ARCHS_NON_DEBIAN = \
10
11# --------------------------------------------------------------------------------
12
13ifeq ($(DEBIAN),1)
14ARCHS = $(ARCHS_ALL)
15else
16ARCHS = $(ARCHS_ALL) $(ARCHS_NON_DEBIAN)
17endif
18
19# --------------------------------------------------------------------------------
20# warnings in this subtree?
21
22RAISE_WARNINGS=1
23
24ifeq ($(RAISE_WARNINGS),0)
25cflags:=$(cflags:-W -Wall=-w)
26endif
27
28include $(ARBHOME)/SOURCE_TOOLS/export2sub
29
30# --------------------------------------------------------------------------------
31
32$(MAIN): $(ARCHS)
33
34depends: $(ARCHS:.dummy=.depend)
35
36clean: $(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.