source: tags/ms_r16q2/SOURCE_TOOLS/Makefile

Last change on this file was 13443, checked in by westram, 9 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 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
30VECTORIZED_SOURCE=vectorized.source
31
32vectorize_checks:
33        ( echo "# [generated] list of source-files for which loop vectorization shall be checked"; \
34          ( cd $(ARBHOME); \
35            grep --recursive --files-with-matches "--include=*.c" "--include=*.cxx" LOOP_VECTORIZED . \
36            | sort \
37            | $(SED) -e 's/^\.\///' \
38          ) \
39        ) > $(VECTORIZED_SOURCE).tmp
40        ./mv_if_diff $(VECTORIZED_SOURCE).tmp $(VECTORIZED_SOURCE)
41
42# --------------------------------------------------------------------------------
43
44# library dependencies generated here always use dynamic libnames,
45# even if LINK_STATIC=1 defined in ../Makefile@LINK_STATIC
46#
47# The files generated here are not used yet (so the above does not matter)
48# They are intended to be used to link all ARB binaries
49# (instead of using explicit link commands in ../Makefile)
50
51% : %.tmp
52        ./mv_if_diff $< $@
53
54CORE_LIB=lib/libCORE.so
55
56TMP=dep.alltargets.tmp.tmp
57
58dep.alltargets.tmp: Makefile needed_libs.pl
59        LINK_STATIC=0;./needed_libs.pl -U -I -F $(CORE_LIB) > $(TMP)
60        $(SED) -e 's/ /\n/g' < $(TMP) > $@
61        rm $(TMP)
62        echo $(CORE_LIB) >>$@
63
64dep.libtargets: dep.alltargets
65        grep -E '\.(a|o|so)' $< > $@ || true
66
67dep.4dummy.tmp: dep.libtargets
68        ./gen_dep.pl dummy <$< >$@
69
70libdepends: dep.4dummy
71
72
Note: See TracBrowser for help on using the repository browser.