-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile-c
More file actions
78 lines (67 loc) · 4.1 KB
/
Copy pathmakefile-c
File metadata and controls
78 lines (67 loc) · 4.1 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
##############################################################################
################################ makefile-c ##################################
##############################################################################
# #
# complete makefile of BundleSolver #
# #
# The makefile defines internally all external libraries (comprised the #
# SMS++ one) required by BundleSolver. 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 #
# $(BNDSLVSDR) = the directory where BundleSolver 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 for BundleSolver #
# $(BNDSLVINC) = the -I$( BundleSolver directory ) #
# #
# Antonio Frangioni #
# Enrico Gorgone #
# 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 libCPLEX library makefile, then include it
# not necessary, MILPSolver does it already
# define input macros for SMS++ library makefile, then include it
# not necessary, MILPSolver does it already
#SMS++SDR = $(BNDSLVSDR)/../SMS++
#include $(SMS++SDR)/lib/makefile-inc
# define input macros for MILPSolver complete makefile, then include it
MILPSSDR = $(BNDSLVSDR)/../MILPSolver
include $(MILPSSDR)/makefile-c
# define input macros for libNDO library makefile, then include it
# signal that *_ROOT values for external libraries need not be read by
# the libNDO makefiles since they are defined already by SMS++
NDOFi_NO_PATHS = 0
libNDOSDR = $(BNDSLVSDR)/NdoFiOracle
include $(libNDOSDR)/lib/makefile-inc
# define input macros for Torch library makefile, then include it;
# BundleSolverML is only compiled in if Torch is actually installed
# at $(Torch_ROOT)
ifneq ($(wildcard $(subst $\",,$(Torch_ROOT))/include/torch/csrc/api/include/torch/torch.h),)
include $(BNDSLVSDR)/../extlib/makefile-libTorch
BNDSLVML = 1
endif
# 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) $(MILPSOBJ) $(libNDOOBJ)
BNDSLVINC := $(BNDSLVINC) $(MILPSINC) $(libNDOINC) $(libTorchINC)
BNDSLVH := $(BNDSLVH) $(MILPSH) $(libNDOH)
# external libraries for BundleSolver
BNDSLVLIB = $(libNDOLIB) $(MILPSLIB) $(libTorchLIB)
############################ End of makefile #################################