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 (68 lines) | stat: -rw-r--r-- 1,548 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
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@

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

SIAL_LIB=../../../lib/libsial.a

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)

all: tabula_rasa $(SIAL_LIB)

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

$(SIAL_LIB): libsial.a
	cp libsial.a $(SIAL_LIB)
	rm -f make.out make.err
libsial.a: $(F_OBJS) $(f_OBJS) $(c_OBJS) $(CPP_OBJS)
	ar $(ARFLAGS) libsial.a $(F_OBJS) $(f_OBJS) $(c_OBJS) $(CPP_OBJS) 

libclean: ;
	rm -f libsial.a

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

rebuild: libclean $(SIAL_LIB)

binclean relink archive: % : ;

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

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

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

.cpp.o: 
	$(CPP) -c $(CPPFLAGS) $(INCLUDE_DIRS) $<