Makefile 1.16 KB
Newer Older
Claus Kleinwort's avatar
Claus Kleinwort committed
1
2
# #################################################################
# Makefile for GBLTST (test general broken lines)
3
4
#
# Author Claus Kleinwort, DESY, 2011
Claus Kleinwort's avatar
Claus Kleinwort committed
5
# #################################################################
6
# for gprof use -pg
Claus Kleinwort's avatar
Claus Kleinwort committed
7
8
9
#
FCOMP = gcc
F_FLAGS = -Wall -fno-automatic -fno-backslash -O3
10
# profiling: -pg
Claus Kleinwort's avatar
Claus Kleinwort committed
11
12
13
14
15
16
17
18
19
20
21
# gcc3: 
#F_LIBS = -lg2c -lfrtbegin
# gcc4: 
F_LIBS = -lgfortran -lgfortranbegin
DEBUG =          # e.g. -g
#
LOADER = gcc
L_FLAGS = -Wall -O3
#
# objects for this project
#
22
USER_OBJ_GBL = gbltraj.o gbltst.o gblnum.o Dbandmatrix.o mille.o
Claus Kleinwort's avatar
Claus Kleinwort committed
23
24
25
26
27
28
29
30
#
EXECUTABLES = gbltst
#

all:	$(EXECUTABLES)

# The single special one:
gbltst: ${USER_OBJ_GBL} Makefile
31
	$(LOADER) $(L_FLAGS) -o $@ ${USER_OBJ_GBL} $(F_LIBS)
Claus Kleinwort's avatar
Claus Kleinwort committed
32
33
34
35
36
37
38
39
40
41
42
43
44
#  
clean:
	rm -f *.o *~ */*.o */*~
#
clobber: clean 
	rm -f $(EXECUTABLES)

install: $(EXECUTABLES) #clean
	mkdir -p bin
	mv $(EXECUTABLES) bin

# Make the object files - depend on source and include file 
#
45
46
47
%.o : %.F Makefile
	${FCOMP} ${F_FLAGS} -c $< -o $@ 
%.o : %.f90 Makefile
Claus Kleinwort's avatar
Claus Kleinwort committed
48
49
50
51
52
	${FCOMP} ${F_FLAGS} -c $< -o $@ 
#
# ##################################################################
# END
# ##################################################################