File: Makefile.in

package info (click to toggle)
aces3 3.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 774,808 kB
  • ctags: 39,009
  • sloc: f90: 5,133,741; fortran: 381,059; ansic: 22,951; pascal: 7,515; cpp: 4,349; makefile: 1,711; csh: 292; sh: 144
file content (74 lines) | stat: -rw-r--r-- 1,664 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
include ../GNUmakefile.chssi

#Compilers
FC=@FC@
CC=@CC@
CPP=@CXX@
SERIAL_CPP=@SERIAL_CPP@

#Compiler flags
FFLAGS=@FCFLAGS@
CFLAGS=@CFLAGS@
CPPFLAGS=@CXXFLAGS@

#ACESLIBS variable will be replaced by the autoconf script with appropriate libraries
LIBS = @ACESLIBS@
LIBS:= -lstdc++ -lsip1 -lsip2 -lsip_shared -lframelib -laces2 -lgeopt -lsymcor -laces2 -lerd -loed -ldup -lsip1 -lsip2 $(LIBS)

#ACESFLAGS variable will be replaced by the autoconf script with location of libraries
LIB_DIRS= @ACESFLAGS@

SIAL_COMPILER_LIBS= @SIAL_COMPILER_LIBS@

LIB_DIRS:=-L../lib $(LIB_DIRS)

ACES2_LIB=../lib/libaces2.a
EXE=../bin/xtest_compare

FSOURCE=$(wildcard *.F)
F_OBJS=$(FSOURCE:.F=.o)
fSOURCE=$(wildcard *.f)
f_OBJS:=$(fSOURCE:.f=.o)
cSOURCE=$(wildcard *.c)
c_OBJS:=$(cSOURCE:.c=.o)
CPP_SOURCE=$(wildcard *.cpp)
CPP_OBJS:=$(CPP_SOURCE:.cpp=.o)

MAIN_OBJS=$(F_OBJS) $(f_OBJS) $(c_OBJS) $(CPP_OBJS)

all: tabula_rasa $(EXE)

tabula_rasa: ;
	rm -f make.out make.err

$(EXE): xtest_compare
	cp xtest_compare $(EXE)
	rm -f make.out make.err

xtest_compare: $(ACES2_LIB) $(MAIN_OBJS)
	$(FC) $(FFLAGS) $(LFLAGS) -o xtest_compare \
	       $(MAIN_OBJS) \
	       $(LIB_DIRS) $(LIBS) && test -x xtest_compare  || rm -f xtest_compare

binclean: ;
	rm -f xtest_compare

ppclean clean distclean: % : tabula_rasa binclean
	rm -f *.o

rebuild relink: % : binclean $(EXE)

libclean archive: % : ;

.f.o:
	$(FC) -c $(FFLAGS) $(INCLUDE_DIRS) $< 1>>make.out 2>>make.err

.F.o:
	$(FC) -c $(FFLAGS) $(INCLUDE_DIRS) $< 1>>make.out 2>>make.err

.c.o:
	$(CC) -c $(CFLAGS) $(INCLUDE_DIRS) $< 1>>make.out 2>>make.err

.cpp.o: 
	$(CPP) -c $(CPPFLAGS) $(INCLUDE_DIRS) $< 1>>make.out 2>>make.err