-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile-c
More file actions
64 lines (55 loc) · 3.6 KB
/
Copy pathmakefile-c
File metadata and controls
64 lines (55 loc) · 3.6 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
##############################################################################
################################ makefile-c ##################################
##############################################################################
# #
# complete makefile of CapacitatedFacilityLocationBlock #
# #
# The makefile defines internally all external libraries (i.e., the SMS++ #
# one) required by CapacitatedFacilityLocationBlock. Accordingly, all #
# necessary OBJ, H, -I directives, external libraries + -L< libdirs > are #
# added to the corresponding CFLBk* macros. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(CFLBkSDR) = the directory where the #
# CapacitatedFacilityLocationBlock source is #
# $(CFLBkODR) = the directory where the objects have to be put #
# #
# Output: $(CFLBkOBJ) = the final object(s) / library #
# $(CFLBkLIB) = external libraries + -L< libdirs > #
# $(CFLBkH) = the .h files to include for #
# CapacitatedFacilityLocationBlock #
# $(CFLBkINC) = the -I$( CapacitatedFacilityLocationBlock #
# directory ) #
# #
# Antonio Frangioni #
# 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 >
# define input macros for SMS++ complete makefile, then include it
SMS++SDR = $(CFLBkSDR)/../SMS++
include $(SMS++SDR)/lib/makefile-inc
# define input macros for MCFBlock complete makefile sans SMS++, include it
MCFBkSDR = $(CFLBkSDR)/../MCFBlock
include $(MCFBkSDR)/makefile-s
# define input macros for BinaryKnapsackBlock makefile, include it
BKBkSDR = $(CFLBkSDR)/../BinaryKnapsackBlock
include $(BKBkSDR)/makefile
# include the makefile requiring all external modules in input
include $(CFLBkSDR)/makefile
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
# append external -I directives to CFLBkINC, CFLBkOBJ and CFLBkH as defined
# by the makefile, thus the := assignment has to be used (use GNU make)
CFLBkOBJ := $(CFLBkOBJ) $(MCFBkOBJ) $(BKBkOBJ) $(SMS++OBJ)
CFLBkINC := $(CFLBkINC) $(MCFBkINC) $(BKBkINC) $(SMS++INC)
# external libraries for CapacitatedFacilityLocationBlock
CFLBkLIB = $(MCFBkLIB) $(BKBkLIB) $(SMS++LIB)
############################ End of makefile #################################