| 1 | .SUFFIXES: .o .c .cxx | 
|---|
| 2 |  | 
|---|
| 3 | SED:=$(ARBHOME)/SH/arb_sed | 
|---|
| 4 |  | 
|---|
| 5 | all: | 
|---|
| 6 | @echo "use make clean" | 
|---|
| 7 |  | 
|---|
| 8 | # -------------------------------------------------------------------------------- | 
|---|
| 9 |  | 
|---|
| 10 | OBJECTS=arb_main_cpp.o arb_main_c.o | 
|---|
| 11 |  | 
|---|
| 12 | ARB_MAIN_DEPENDS=Makefile arb_main.h | 
|---|
| 13 |  | 
|---|
| 14 | arb_main_cpp.o: arb_main.cxx $(ARB_MAIN_DEPENDS) | 
|---|
| 15 | $(A_CXX) $(cflags) $(cxxflags) -c $< -o $@ $(CXX_INCLUDES) $(POST_COMPILE) $< | 
|---|
| 16 |  | 
|---|
| 17 | arb_main_c.o: arb_main.c $(ARB_MAIN_DEPENDS) arb_main.cxx | 
|---|
| 18 | $(A_CC) $(cflags) -c $< -o $@ $(CC_INCLUDES) $(POST_COMPILE) $< | 
|---|
| 19 |  | 
|---|
| 20 | mainwrapper: $(OBJECTS) | 
|---|
| 21 |  | 
|---|
| 22 | # -------------------------------------------------------------------------------- | 
|---|
| 23 | # tmp.generator | 
|---|
| 24 |  | 
|---|
| 25 | % : %.tmp | 
|---|
| 26 | ./mv_if_diff $< $@ | 
|---|
| 27 |  | 
|---|
| 28 | # -------------------------------------------------------------------------------- | 
|---|
| 29 |  | 
|---|
| 30 | clean: | 
|---|
| 31 | rm -f stamp.* valgrind2grep.lst postcompile.sav $(OBJECTS) | 
|---|
| 32 |  | 
|---|
| 33 | valgrind_update: | 
|---|
| 34 | ./arb_valgrind update | 
|---|
| 35 |  | 
|---|
| 36 | # for details about vectorization see ./vectorize.README | 
|---|
| 37 | vectorize_checks: vectorized.source | 
|---|
| 38 |  | 
|---|
| 39 | vectorized.source.tmp: | 
|---|
| 40 | ( echo "# [generated] list of source-files for which loop vectorization shall be checked"; \ | 
|---|
| 41 | echo "# for details see ./vectorize.README"; \ | 
|---|
| 42 | ( cd $(ARBHOME); \ | 
|---|
| 43 | grep --recursive --files-with-matches "--include=*.c" "--include=*.cxx" LOOP_VECTORIZED . \ | 
|---|
| 44 | | $(SED) -e 's/^\.\///' \ | 
|---|
| 45 | | sort --ignore-case \ | 
|---|
| 46 | ) \ | 
|---|
| 47 | ) > $@ | 
|---|
| 48 |  | 
|---|
| 49 |  | 
|---|
| 50 | # -------------------------------------------------------------------------------- | 
|---|
| 51 |  | 
|---|
| 52 | # library dependencies generated here always use dynamic libnames, | 
|---|
| 53 | # even if LINK_STATIC=1 defined in ../Makefile@LINK_STATIC | 
|---|
| 54 | # | 
|---|
| 55 | # The files generated here are not used yet (so the above does not matter) | 
|---|
| 56 | # They are intended to be used to link all ARB binaries | 
|---|
| 57 | # (instead of using explicit link commands in ../Makefile) | 
|---|
| 58 |  | 
|---|
| 59 | CORE_LIB=lib/libCORE.so | 
|---|
| 60 |  | 
|---|
| 61 | TMP=dep.alltargets.tmp.tmp | 
|---|
| 62 |  | 
|---|
| 63 | dep.alltargets.tmp: Makefile needed_libs.pl | 
|---|
| 64 | LINK_STATIC=0;./needed_libs.pl -U -I -F $(CORE_LIB) > $(TMP) | 
|---|
| 65 | $(SED) -e 's/ /\n/g' < $(TMP) > $@ | 
|---|
| 66 | rm $(TMP) | 
|---|
| 67 | echo $(CORE_LIB) >>$@ | 
|---|
| 68 |  | 
|---|
| 69 | dep.libtargets: dep.alltargets | 
|---|
| 70 | grep -E '\.(a|o|so)' $< > $@ || true | 
|---|
| 71 |  | 
|---|
| 72 | dep.4dummy.tmp: dep.libtargets | 
|---|
| 73 | ./gen_dep.pl dummy <$< >$@ | 
|---|
| 74 |  | 
|---|
| 75 | libdepends: dep.4dummy | 
|---|
| 76 |  | 
|---|
| 77 |  | 
|---|