File: rules.am

package info (click to toggle)
esys-particle 2.3.4%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,036 kB
  • ctags: 10,805
  • sloc: cpp: 80,009; python: 5,872; makefile: 1,243; sh: 313; perl: 225
file content (58 lines) | stat: -rw-r--r-- 1,637 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#############################################################
##                                                         ##
## Copyright (c) 2003-2014 by The University of Queensland ##
## Centre for Geoscience Computing                         ##
## http://earth.uq.edu.au/centre-geoscience-computing      ##
##                                                         ##
## Primary Business: Brisbane, Queensland, Australia       ##
## Licensed under the Open Software License version 3.0    ##
## http://www.apache.org/licenses/LICENSE-2.0          ##
##                                                         ##
#############################################################

##
#
# Begin $(top_srcdir)/Config/rules.am
#

if TAU_PROFILING
  include $(TAU_MAKEFILE)
  AM_MAKEFLAGS = -r CC="$(TAU_CC)" CXX="$(TAU_CXX)" CPPFLAGS="$(TAU_DEFS) $(TAU_INCLUDE) $(TAU_MPI_INCLUDE)"

  PDTPARSE = $(PDTDIR)/$(CONFIG_ARCH)/bin/cxxparse
  TAUINSTR = $(TAU_PREFIX_INSTALL_DIR)/$(CONFIG_ARCH)/bin/tau_instrumentor

  EXTRA_LD_LIBS = $(TAU_LDFLAGS) $(TAU_MPI_LIBS) $(TAU_LIBS) -lpfm

#
# Prevent intermediate instrumented files from automatically
# being deleted.
#
.SECONDARY: .inst_cpp .pdb

#
# Cancel implicit rules
#
%.o: %.cpp

%.o:%.inst_cpp
	if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
	then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi

%.inst_cpp: %.pdb
	$(TAUINSTR) $*.pdb $*.cpp -o $@

%.pdb: %.cpp
	$(PDTPARSE) $< -I. $(CPPFLAGS) $(AM_CPPFLAGS)

else
  AM_MAKEFLAGS =
  EXTRA_LD_LIBS = 
endif

CLEANFILES = *.inst_cpp *.pdb

#
# End $(top_srcdir)/Config/rules.am
#
##