-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile-c
More file actions
61 lines (53 loc) · 3.4 KB
/
Copy pathmakefile-c
File metadata and controls
61 lines (53 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
57
58
59
60
61
##############################################################################
################################ makefile-c ##################################
##############################################################################
# #
# complete makefile of MCFClassSolver #
# #
# The makefile defines internally all external libraries (comprised the #
# SMS++ one) required by MCFClassSolver. Accordingly, all necessary OBJ, #
# H, -I directives, external libraries + -L< libdirs > are added to the #
# corresponding MCFCS* macros. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(MCFCSSDR) = the directory where the MCFClassSolver source is #
# #
# Output: $(MCFCSOBJ) = the final object(s) / library #
# $(MCFCSLIB) = external libraries + -L< libdirs > #
# $(MCFCSH) = the .h files to include for MCFClassSolver #
# $(MCFCSINC) = the -I$( MCFClassSolver 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 = $(MCFCSSDR)/../SMS++
include $(SMS++SDR)/lib/makefile-inc
# define input macros for MCFBlock makefile + dependencies, then include it
MCFBkSDR = $(MCFCSSDR)/../MCFBlock
include $(MCFBkSDR)/makefile-s
# define input macros for libMCFCl complete makefile, then include it
# signal that *_ROOT values for external libraries need not be read by
# the MCFClass makefiles since they are defined already by SMS++
MCFC_NO_PATHS = 0
libMCFClDIR = $(MCFCSSDR)/MCFClass
include $(libMCFClDIR)/lib/makefile-inc
# include the makefile requiring all external modules in input
include $(MCFCSSDR)/makefile
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
# append other *INC to MCFCSINC, *OBJ to MCFCSOBJ, and *H to MCFCSH as
# defined by the makefile, thus the := assignment has to be used
MCFCSOBJ := $(MCFCSOBJ) $(MCFBkOBJ) $(libMCFClOBJ) $(SMS++OBJ)
MCFCSINC := $(SMS++INC) $(MCFBkINC) $(libMCFClINC) $(MCFCSINC)
MCFCSLIB := $(MCFCSLIB) $(MCFBkLIB) $(libMCFClLIB) $(SMS++LIB)
############################ End of makefile #################################