-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile-s
More file actions
60 lines (52 loc) · 3.35 KB
/
Copy pathmakefile-s
File metadata and controls
60 lines (52 loc) · 3.35 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
##############################################################################
################################ makefile-s ##################################
##############################################################################
# #
# makefile of MMCFBlock and its dependencies, excluding SMS++ #
# #
# The makefile defines internally all external libraries required by #
# MMCFBlock, excluding the SMS++ core ones whose symbols are assumed to #
# have been defined already (typically by including SMS++/lib/makefile). #
# Accordingly, all necessary OBJ, H, -I directives, external libraries #
# + -L< libdirs > are added to the corresponding MMCF* macros. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(SMS++INC) = the -I$( core SMS++ directory ) #
# $(SMS++OBJ) = the core SMS++ library #
# $(MMCFSDR) = the directory where MMCFBlock source is #
# #
# Output: $(MMCFOBJ) = the final object(s) / library #
# $(MMCFLIB) = external libraries + -L< libdirs > #
# $(MMCFH) = the .h files to include for MMCFBlock #
# $(MMCFINC) = the -I$( MMCFBlock 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 MCFBlock makefile + dependencies, then include it
MCFBkSDR = $(MMCFSDR)/../MCFBlock
include $(MCFBkSDR)/makefile-s
# define input macros for BinaryKnapsackBlock makefile, then include it
BKBkSDR = $(MMCFSDR)/../BinaryKnapsackBlock
include $(BKBkSDR)/makefile
# include the makefile requiring all external modules in input
include $(MMCFSDR)/makefile
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
# append external -I directives to MILPBINC, MILPBOBJ and MILPBH as defined
# by the makefile, thus the := assignment has to be used (use GNU make)
MMCFOBJ := $(MMCFOBJ) $(BKBkOBJ) $(MCFBkOBJ)
MMCFH := $(MMCFH) $(BKBkH) $(MCFBkH)
MMCFINC := $(BKBkINC) $(MCFBkINC) $(MMCFINC)
# external libraries for MMCFBlock
MMCFLIB = $(MCFBkLIB)
########################### End of makefile-s ################################