File: Makefile.sample.in

package info (click to toggle)
madness 0.10.1~gite4aa500e-10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 33,452 kB
  • ctags: 30,300
  • sloc: cpp: 267,232; ansic: 12,308; python: 4,961; fortran: 4,245; xml: 1,053; makefile: 717; perl: 244; yacc: 227; lex: 188; asm: 141; sh: 139; csh: 55
file content (43 lines) | stat: -rw-r--r-- 1,301 bytes parent folder | download | duplicates (5)
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

# These variables substituted by configure
TRUNK    = @abs_top_srcdir@
CXX      = @CXX@
CXXFLAGS = @CXXFLAGS@ 
CPPFLAGS = @CPPFLAGS@ -I$(TRUNK)/include -I$(TRUNK)/src -I$(TRUNK)/src/apps
LDFLAGS  = @LDFLAGS@
LIBS     = @LIBS@

# Directories holding libraries
LIBWORLDDIR=$(TRUNK)/src/madness/world
LIBTENSORDIR=$(TRUNK)/src/madness/tensor
LIBMISCDIR=$(TRUNK)/src/madness/misc
LIBMRADIR=$(TRUNK)/src/madness/mra
LIBTINYXMLDIR=$(TRUNK)/src/madness/external/tinyxml
LIBMUPARSERDIR=$(TRUNK)/src/madness/external/muParser

# Individual libraries
LIBWORLD=$(LIBWORLDDIR)/libMADworld@LIB_SUFFIX@
LIBTENSOR=$(LIBTENSORDIR)/libMADtensor@LIB_SUFFIX@
LIBLINALG=$(LIBTENSORDIR)/libMADlinalg@LIB_SUFFIX@
LIBMISC=$(LIBMISCDIR)/libMADmisc@LIB_SUFFIX@
LIBMRA=$(LIBMRADIR)/libMADmra@LIB_SUFFIX@
LIBTINYXML=$(LIBTINYXMLDIR)/libMADtinyxml@LIB_SUFFIX@
LIBMUPARSER=$(LIBMUPARSERDIR)/libMADmuparser@LIB_SUFFIX@



# Most scientific/numeric applications will link against these libraries
MRALIBS=$(LIBMRA) $(LIBLINALG) $(LIBTENSOR) $(LIBMISC) $(LIBMUPARSER) \
        $(LIBTINYXML) $(LIBWORLD) 

# This to enable implicit Gnumake rule for linking from single source
LDLIBS := $(MRALIBS) $(LIBS)


# Define your targets below here ... this is just an example

OBJ = a.o b.o c.o

myprog:   $(OBJ)
	$(CXX) -o $@ $^ $(LDLIBS)