-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
61 lines (51 loc) · 3.45 KB
/
Copy pathmakefile
File metadata and controls
61 lines (51 loc) · 3.45 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 ####################################
##############################################################################
# #
# makefile of InvestmentBlock #
# #
# Note that $(SMS++INC) is assumed to include any -I directive #
# corresponding to external libraries needed by SMS++, at least to the #
# extent in which they are needed by the parts of SMS++ used by #
# InvestmentBlock. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(SMS++INC) = the -I$( core SMS++ directory ) #
# $(SMS++OBJ) = the libSMS++ library itself #
# $(SDDPBkH) = the .h files to include for SDDPBlock #
# $(SDDPBkINC) = the -I$( source directory ) for SDDPBlock #
# $(UCBckH) = the .h files to include for UCBlock #
# $(UCBckINC) = the -I$( source directory ) for UCBlock #
# $(InvsBkSDR) = the directory where the source is #
# #
# Output: $(InvsBkOBJ) = the final object(s) / library #
# $(InvsBkH) = the .h files to include #
# $(InvsBkINC) = the -I$( source directory ) #
# #
# Antonio Frangioni #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
InvsBkOBJ = $(InvsBkSDR)/obj/InvestmentBlock.o \
$(InvsBkSDR)/obj/InvestmentFunction.o
InvsBkINC = -I$(InvsBkSDR)/include
InvsBkH = $(InvsBkSDR)/include/InvestmentBlock.h \
$(InvsBkSDR)/include/InvestmentFunction.h
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(InvsBkOBJ) $(InvsBkSDR)/*~
# dependencies: every .o from its .cpp + every recursively included .h- - - -
$(InvsBkSDR)/obj/InvestmentBlock.o: $(InvsBkSDR)/src/InvestmentBlock.cpp \
$(InvsBkSDR)/include/InvestmentFunction.h $(SDDPBkH) $(UCBckH) \
$(SMS++OBJ)
$(CC) -c $(InvsBkSDR)/src/InvestmentBlock.cpp -o $@ $(InvsBkINC) \
$(SDDPBkINC) $(UCBckINC) $(SMS++INC) $(SW)
$(InvsBkSDR)/obj/InvestmentFunction.o: $(InvsBkSDR)/src/InvestmentFunction.cpp \
$(InvsBkSDR)/include/InvestmentFunction.h \
$(InvsBkSDR)/include/InvestmentBlock.h $(SDDPBkH) $(UCBckH) $(SMS++OBJ)
$(CC) -c $(InvsBkSDR)/src/InvestmentFunction.cpp -o $@ $(InvsBkINC) \
$(SDDPBkINC) $(UCBckINC) $(SMS++INC) $(SW)
########################## End of makefile ###################################