-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile-c
More file actions
54 lines (47 loc) · 3.05 KB
/
Copy pathmakefile-c
File metadata and controls
54 lines (47 loc) · 3.05 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
##############################################################################
################################ makefile-c ##################################
##############################################################################
# #
# complete makefile of FrankWolfeSolver #
# #
# The makefile defines internally all external libraries (comprised the #
# SMS++ one) required by FrankWolfeSolver. Accordingly, all necessary #
# OBJ, H, -I directives, external libraries + -L< libdirs > are added to #
# the corresponding FWSlv* macros. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(FWSlvSDR) = the directory where FrankWolfeSolver source is #
# $(FWSlvODR) = the directory where the objects have to be put #
# #
# Output: $(FWSlvOBJ) = the final object(s) / library #
# $(FWSlvLIB) = external libraries + -L< libdirs > #
# $(FWSlvH) = the .h files to include for FrankWolfeSolver #
# $(FWSlvINC) = the -I$( FrankWolfeSolver 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++ library makefile, then include it
SMS++SDR = $(FWSlvSDR)/../SMS++
include $(SMS++SDR)/lib/makefile-inc
# include the makefile requiring all external modules in input
include $(FWSlvSDR)/makefile
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
# append external stuff defined in the other makefiles to FWSlvOBJ,
# FWSlvINC and FWSlvH, thus the := assignment has to be used (use GNU make)
FWSlvOBJ := $(FWSlvOBJ) $(SMS++OBJ)
FWSlvINC := $(FWSlvINC) $(SMS++INC)
FWSlvH := $(FWSlvH) $(SMS++H)
# external libraries for FrankWolfeSolver (those of SMS++)
FWSlvLIB = $(SMS++LIB)
############################ End of makefile #################################