File: Makefile.in

package info (click to toggle)
aces3 3.0.8-5.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 775,084 kB
  • sloc: f90: 5,133,741; fortran: 381,059; ansic: 22,951; pascal: 7,515; cpp: 4,349; makefile: 1,712; csh: 292; sh: 144
file content (81 lines) | stat: -rw-r--r-- 1,838 bytes parent folder | download | duplicates (4)
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
75
76
77
78
79
80
81
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 -loed -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@

INCLUDE_DIRS := -I../../../../sia/include -I../aces2/include $(INCLUDE_DIRS)
LIB_DIRS:=-L../../../lib $(LIB_DIRS)

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)
f90_SOURCE=$(wildcard *.f90)
f90_OBJS=$(F90_SOURCE:.f90=.o)
F90_SOURCE=$(wildcard *.F90)
F90_OBJS=$(F90_SOURCE:.F90=.o)

OEDLIB_F12=../../../../../lib/liboed_F12.a

all: tabula_rasa module.o $(OEDLIB_F12)

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

module.o: module.F90
	$(FC) -c $(FFLAGS1) $(INCLUDE_DIRS) $< 

$(OEDLIB_F12): liboed_F12.a
	cp liboed_F12.a $(OEDLIB_F12)
	rm -f make.out make.err

liboed_F12.a: $(F_OBJS) $(f_OBJS) $(c_OBJS) $(f90_OBJS) $(F90_OBJS)
	ar $(ARFLAGS) liboed_F12.a $(F_OBJS) $(f_OBJS) $(c_OBJS) $(f90_OBJS) $(F90_OBJS)

libclean: ;
	rm -f liboed_F12.a

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

rebuild: libclean $(FRAMELIB)

binclean relink archive: % : ;


%.o: %.f90
	$(FC) -c $(FFLAGS1) $(INCLUDE_DIRS) $< 

%.o: %.F90
	$(FC) -c $(FFLAGS1) $(INCLUDE_DIRS) $< 

.f.o:
	$(FC) -c $(FFLAGS) $(INCLUDE_DIRS) $< 

.F.o:
	$(FC) -c $(FFLAGS) $(INCLUDE_DIRS) $< 

.c.o:
	$(CC) -c $(CFLAGS) $(INCLUDE_DIRS) $<