source: branches/stable/XML_IMPORT/Makefile

Last change on this file was 9574, checked in by westram, 6 years ago
  • show from where dependencies are updated
  • 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#SUB_LFLAGS=$(lflags) $(SAX_LIB_SEARCH_PATH) $(SAX_LIBRARY_NAME)
13
14include $(ARBHOME)/SOURCE_TOOLS/export2sub
15
16# --------------------------------------------------------------------------------
17
18$(MAIN):
19ifeq ($(SHOWTODO),1)
20        @echo "Makefile:20: Warning: XML_IMPORT is unfinished work"
21endif
22        true
23
24#$(MAIN): $(ARCHS)
25
26depends: $(ARCHS:.dummy=.depend)
27
28%.depend:
29        @cp -p $(@D)/Makefile $(@D)/Makefile.old # save old Makefile
30        @$(MAKE) -C $(@D) -r depends
31        @grep "^# DO NOT DELETE" $(@D)/Makefile >/dev/null # check whether sub Makefile has dependencies
32        @cat $(@D)/Makefile \
33                | ../SOURCE_TOOLS/fix_depends.pl "(from XML_IMPORT)" \
34                >$(@D)/Makefile.2
35        @mv $(@D)/Makefile.old $(@D)/Makefile # restore old Makefile
36        @$(ARBHOME)/SOURCE_TOOLS/mv_if_diff $(@D)/Makefile.2 $(@D)/Makefile # update Makefile if changed
37
38%.dummy:
39        @$(MAKE) -C $(@D) -r \
40                "ARB  = yes" \
41                "MAIN = $(@F:.dummy=.a)" \
42                "cflags = $(SUB_CFLAGS) -DIN_ARB_$(@D:/=)" \
43
44# DO NOT DELETE
Note: See TracBrowser for help on using the repository browser.