Repository navigation
Expand file tree
/
Copy pathmakefile-s
More file actions
56 lines (50 loc) · 3.4 KB
/
Copy pathmakefile-s
File metadata and controls
56 lines (50 loc) · 3.4 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-s ##################################
##############################################################################
# #
# short makefile of BendersDecompositionSolver #
# #
# The makefile defines internally all external libraries required by #
# BendersDecompositionSolver, excluding the SMS++ core ones whose symbols #
# are assumed to have been defined already (e.g. by including #
# SMS++/lib/makefile). Accordingly, all necessary OBJ, H, -I directives, #
# external libraries + -L< libdirs > are added to the corresponding #
# BnDSLV* macros. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(SMS++INC) = the -I$( core SMS++ directory ) #
# $(SMS++OBJ) = the core SMS++ library #
# $(BnDSLVSDR) = the directory where BendersDecompositionSolver #
# source is #
# $(BnDSLVODR) = the directory where the objects have to be put #
# #
# Output: $(BnDSLVOBJ) = the final object(s) / library #
# $(BnDSLVLIB) = external libraries + -L< libdirs > #
# $(BnDSLVH) = the .h files to include #
# $(BnDSLVINC) = the -I$( BendersDecompositionSolver directory ) #
# #
# Antonio Frangioni #
# Donato Meoli #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# define & include the necessary modules- - - - - - - - - - - - - - - - - - -
# if a module is not used in the current configuration, just comment out the
# corresponding include line
# each module outputs some macros to be used here:
# *OBJ is the final object/library
# *H is the list of all include files
# *INC is the -I< include directories >
# include the makefile requiring all external modules in input
include $(BnDSLVSDR)/makefile
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
# append external stuff defined in the other makefiles to BnDSLVOBJ,
# BnDSLVINC and BnDSLVH, thus the := assignment has to be used (use GNU make)
BnDSLVOBJ := $(BnDSLVOBJ) $(SMS++OBJ)
BnDSLVINC := $(BnDSLVINC) $(SMS++INC)
BnDSLVH := $(BnDSLVH) $(SMS++H)
# external libraries for BendersDecompositionSolver (those of SMS++)
BnDSLVLIB = $(SMS++LIB)
############################ End of makefile #################################