forked from richardposner/BioNetFit2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmk1.mak
More file actions
executable file
·117 lines (90 loc) · 3.04 KB
/
mk1.mak
File metadata and controls
executable file
·117 lines (90 loc) · 3.04 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
###################################################################
## THIS MAKE FILE IS GENERATED ONLY FOR TEST AND CUSTOMIZED COMPILE
## IT COMPILES ONLY A FEW FILES NOT ALL [LATER REMOVEFROM THE PACKAGE]
###################################################################
# Add inputs and outputs from these tool invocations to the build variables
BINDIR= ./bin
CC=mpic++
CompilerVer=gnu++0x
LogFile=log1.txt
CPP_DEPS = ./bin/src/GenFit2.d \
./bin/src/code/Config.d \
./bin/src/code/Data.d \
./bin/src/code/FreeParam.d \
./bin/src/code/Model.d \
./bin/src/code/Parser.d \
./bin/src/code/Particle.d \
./bin/src/code/Pheromones.d \
./bin/src/code/Swarm.d \
./bin/src/code/Utils.d
################################################################################
# From File Objects
################################################################################
USER_OBJS := ./lib/libboost_iostreams.a ./lib/libboost_regex.a ./lib/libboost_mpi.a ./lib/libboost_program_options.a ./lib/libboost_filesystem.a ./lib/libboost_system.a ./lib/libboost_serialization.a
LIBS := -lrt
OBJS = ./bin/src/GenFit2.o \
./bin/src/code/Config.o \
./bin/src/code/Data.o \
./bin/src/code/FreeParam.o \
./bin/src/code/Model.o \
./bin/src/code/Parser.o \
./bin/src/code/Particle.o \
./bin/src/code/Pheromones.o \
./bin/src/code/Swarm.o \
./bin/src/code/Utils.o
################################################################################
# From file: Sources
################################################################################
O_SRCS :=
CPP_SRCS :=
C_UPPER_SRCS :=
C_SRCS :=
S_UPPER_SRCS :=
OBJ_SRCS :=
ASM_SRCS :=
CXX_SRCS :=
C++_SRCS :=
CC_SRCS :=
OBJS :=
C++_DEPS :=
C_DEPS :=
CC_DEPS :=
CPP_DEPS :=
EXECUTABLES :=
CXX_DEPS :=
C_UPPER_DEPS :=
# Every subdirectory with source files must be described here
SUBDIRS := \
src/code \
src \
-include makefile.init
RM := rm -rf
#install:
# cd $(BINDIR);
#$(CPP_DEPS) later add
bin/src/GenFit2.o: ./src/GenFit2.cpp ./src/GenFit2.hh
pwd
@echo 'Building file: $<'
@echo 'Invoking: GCC C++ Compiler'
$(CC) -D__GXX_EXPERIMENTAL_CXX0X__ -D__cplusplus=201103L -I./include -I/usr/lib/openmpi/include -O3 -g3 -Wall -c -fmessage-length=0 -std=$(CompilerVer) -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '
#$(CPP_DEPS) later add
bin/src/code/Utils.o: ./src/code/Utils.cpp ./src/code/Utils.hh
@echo 'Building file: $<'
@echo 'Invoking: GCC C++ Compiler'
$(CC) -D__GXX_EXPERIMENTAL_CXX0X__ -D__cplusplus=201103L -I./include -I/usr/lib/openmpi/include -O3 -g3 -Wall -c -fmessage-length=0 -std=$(CompilerVer) -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '
bin/BioNetFit: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C++ Linker'
mpic++ -L/usr/lib -o "BioNetFit" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
cleanup:
rm -f ./bin/*.exe
rm -f ./bin/src/GenFit2.d
rm -f ./bin/src/GenFit2.o
# rm -f ./bin/src/code/Utils.o
# rm -f ./bin/src/code/Utils.d