source: tags/ms_r16q3/XML_IMPORT/Makefile

Last change on this file was 14038, checked in by westram, 9 years ago
  • fix #618 (use ar for linking)
    • library order does matter now
      • PROBE_COM/server.a and PROBE/PROBE.a depend on each other → hack: unpack lib and directly link objects
    • do not export pt_init_bond_matrix "extern C"
    • sym2testcode.pl: ignore several additional lines from nm-output
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1
2ARCHS = \
3        IMP_TREE/IMP_TREE.dummy \
4
5# --------------------------------------------------------------------------------
6
7#SAX_INCLUDES        = -I. -I${XERCESCROOT}/include
8#SAX_LIB_SEARCH_PATH = -L${XERCESCROOT}/lib
9#SAX_LIBRARY_NAME    = -lxerces-c
10
11#SUB_CFLAGS=$(cflags) $(SAX_INCLUDES) -DXML_USE_PTHREADS
12
13include $(ARBHOME)/SOURCE_TOOLS/export2sub
14
15# --------------------------------------------------------------------------------
16
17$(MAIN):
18ifeq ($(SHOWTODO),1)
19        @echo "Makefile:20: Warning: XML_IMPORT is unfinished work"
20endif
21        true
22
23#$(MAIN): $(ARCHS)
24
25depends: $(ARCHS:.dummy=.depend)
26
27%.depend:
28        @cp -p $(@D)/Makefile $(@D)/Makefile.old # save old Makefile
29        @$(MAKE) -C $(@D) -r depends
30        @grep "^# DO NOT DELETE" $(@D)/Makefile >/dev/null # check whether sub Makefile has dependencies
31        @cat $(@D)/Makefile \
32                | ../SOURCE_TOOLS/fix_depends.pl "(from XML_IMPORT)" \
33                >$(@D)/Makefile.2
34        @mv $(@D)/Makefile.old $(@D)/Makefile # restore old Makefile
35        @$(ARBHOME)/SOURCE_TOOLS/mv_if_diff $(@D)/Makefile.2 $(@D)/Makefile # update Makefile if changed
36
37%.dummy:
38        @$(MAKE) -C $(@D) -r \
39                "ARB  = yes" \
40                "MAIN = $(@F:.dummy=.a)" \
41                "cflags = $(SUB_CFLAGS) -DIN_ARB_$(@D:/=)" \
42
43# DO NOT DELETE
Note: See TracBrowser for help on using the repository browser.