-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
56 lines (47 loc) · 3.31 KB
/
Copy pathmakefile
File metadata and controls
56 lines (47 loc) · 3.31 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
##############################################################################
################################ makefile ####################################
##############################################################################
# #
# makefile of BendersDecompositionSolver #
# #
# The makefile takes in input the -I directives for all the external #
# libraries needed by BendersDecompositionSolver, i.e., core SMS++ (which #
# provides BendersBFunction). The master and the subproblem Solver are #
# instantiated through the Solver factory at run time, hence they are not #
# compile-time dependencies of this module. #
# #
# Note that $(SMS++INC) is assumed to include any -I directive #
# corresponding to external libraries needed by SMS++, at least to the #
# extent in which they are needed by the parts of SMS++ used by #
# BendersDecompositionSolver. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(SMS++INC) = the -I$( core SMS++ directory ) #
# $(SMS++OBJ) = the core SMS++ library #
# $(BnDSLVSDR) = the directory where the source is #
# #
# Output: $(BnDSLVOBJ) = the final object(s) / library #
# $(BnDSLVH) = the .h files to include #
# $(BnDSLVINC) = the -I$( source directory ) #
# #
# Antonio Frangioni #
# Donato Meoli #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
BnDSLVOBJ = $(BnDSLVSDR)/obj/BendersDecompositionSolver.o
BnDSLVINC = -I$(BnDSLVSDR)/include
BnDSLVH = $(BnDSLVSDR)/include/BendersDecompositionSolver.h
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(BnDSLVOBJ) $(BnDSLVSDR)/*~
# dependencies: every .o from its .cpp + every recursively included .h- - - -
$(BnDSLVSDR)/obj/BendersDecompositionSolver.o: \
$(BnDSLVSDR)/src/BendersDecompositionSolver.cpp \
$(BnDSLVSDR)/include/BendersDecompositionSolver.h $(SMS++OBJ)
$(CC) -c $(BnDSLVSDR)/src/BendersDecompositionSolver.cpp -o $@ \
$(BnDSLVINC) $(SMS++INC) $(SW)
########################## End of makefile ###################################