source: tags/arb_5.2/SL/Makefile

Last change on this file was 6023, checked in by westram, 15 years ago
  • moved tree I/O functions to separate libraries (TREE_READ.a and TREE_WRITE.a)
  • link only with ARB_NTREE and arb_read_tree (before they were linked everywhere)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1
2ARCHS_ALL = \
3        TREE_READ/TREE_READ.dummy  \
4        TREE_WRITE/TREE_WRITE.dummy  \
5        HELIX/HELIX.dummy  \
6        AW_HELIX/AW_HELIX.dummy  \
7        AW_NAME/AW_NAME.dummy  \
8        DB_SCANNER/DB_SCANNER.dummy  \
9        FILE_BUFFER/FILE_BUFFER.dummy  \
10        REGEXPR/REGEXPR.dummy  \
11        FAST_ALIGNER/FAST_ALIGNER.dummy  \
12
13# --------------------------------------------------------------------------------
14# If a package is available as debian package it should go here
15
16ARCHS_NON_DEBIAN = \
17
18# --------------------------------------------------------------------------------
19
20ifdef DEBIAN
21ARCHS = $(ARCHS_ALL) 
22else
23ARCHS = $(ARCHS_ALL) $(ARCHS_NON_DEBIAN)
24endif
25
26# --------------------------------------------------------------------------------
27# warnings in this subtree?
28
29RAISE_WARNINGS=1
30
31ifeq ($(RAISE_WARNINGS),0)
32CPP:=$(CPP:-W -Wall=-w)
33ACC:=$(ACC:-W -Wall=-w)
34endif
35
36include $(ARBHOME)/SOURCE_TOOLS/export2sub
37
38# --------------------------------------------------------------------------------
39
40$(MAIN): $(ARCHS)
41
42depends: $(ARCHS:.dummy=.depend)
43
44clean: $(ARCHS:.dummy=.clean)
45
46%.depend:
47        @cp -p $(@D)/Makefile $(@D)/Makefile.old # save old Makefile
48        @$(MAKE) -C $(@D) -r  depends
49        @grep "^# DO NOT DELETE" $(@D)/Makefile >/dev/null # check whether sub Makefile has dependencies
50        @cat $(@D)/Makefile \
51                | ../SOURCE_TOOLS/fix_depends.pl \
52                >$(@D)/Makefile.2
53        @mv $(@D)/Makefile.old $(@D)/Makefile # restore old Makefile
54        @$(ARBHOME)/SOURCE_TOOLS/mv_if_diff $(@D)/Makefile.2 $(@D)/Makefile # update Makefile if changed
55
56%.dummy:
57        @(($(MAKE) -C $(@D) -r \
58                "ARB  = yes" \
59                "MAIN = $(@F:.dummy=.a)" \
60                "cflags = $(cflags) -DIN_ARB_$(@D:/=)" \
61                >$(@D).log 2>&1 && (cat $(@D).log;rm $(@D).log)) || (cat $(@D).log;rm $(@D).log;false))
62
63%.clean:
64        @$(MAKE) -C $(@D) \
65                clean
66
67# the end of the above command avoids that the output of parallel make calls gets mixed up
68
69# DO NOT DELETE
70
71# Do not add dependencies manually - use 'make depend' in $ARBHOME
72# For formatting issues see SOURCE_TOOLS/fix_depends.pl
Note: See TracBrowser for help on using the repository browser.