source: branches/profile/SOURCE_TOOLS/Makefile

Last change on this file was 11655, checked in by westram, 10 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1.SUFFIXES: .o .cxx
2
3SED:=$(ARBHOME)/SH/arb_sed
4
5all:
6                @echo "use make clean"
7
8# --------------------------------------------------------------------------------
9
10OBJECTS=arb_main_cpp.o arb_main_c.o
11
12ARB_MAIN_DEPENDS=Makefile arb_main.h
13
14arb_main_cpp.o: arb_main.cxx $(ARB_MAIN_DEPENDS) 
15        $(A_CXX) $(cflags) $(cxxflags) -c $< -o $@ $(CXX_INCLUDES) $(POST_COMPILE)
16
17arb_main_c.o: arb_main.c $(ARB_MAIN_DEPENDS) arb_main.cxx
18        $(A_CC) $(cflags) -c $< -o $@ $(CC_INCLUDES) $(POST_COMPILE)
19
20mainwrapper: $(OBJECTS)
21
22# --------------------------------------------------------------------------------
23
24clean: 
25                rm -f stamp.* valgrind2grep.lst postcompile.sav $(OBJECTS)
26
27valgrind_update:
28                ./arb_valgrind update
29
30# --------------------------------------------------------------------------------
31
32# library dependencies generated here always use dynamic libnames,
33# even if LINK_STATIC=1 defined in ../Makefile@LINK_STATIC
34#
35# The files generated here are not used yet (so the above does not matter)
36# They are intended to be used to link all ARB binaries
37# (instead of using explicit link commands in ../Makefile)
38
39% : %.tmp
40        ./mv_if_diff $< $@
41
42CORE_LIB=lib/libCORE.so
43
44TMP=dep.alltargets.tmp.tmp
45
46dep.alltargets.tmp: Makefile needed_libs.pl
47        LINK_STATIC=0;./needed_libs.pl -U -I -F $(CORE_LIB) > $(TMP)
48        $(SED) -e 's/ /\n/g' < $(TMP) > $@
49        rm $(TMP)
50        echo $(CORE_LIB) >>$@
51
52dep.libtargets: dep.alltargets
53        grep -E '\.(a|o|so)' $< > $@ || true
54
55dep.4dummy.tmp: dep.libtargets
56        ./gen_dep.pl dummy <$< >$@
57
58libdepends: dep.4dummy
59
60
Note: See TracBrowser for help on using the repository browser.