-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
66 lines (55 loc) · 3.57 KB
/
Copy pathmakefile
File metadata and controls
66 lines (55 loc) · 3.57 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
##############################################################################
################################ makefile ####################################
##############################################################################
# #
# makefile of StochasticBlock #
# #
# The makefile takes in input the -I directives for all the external #
# libraries needed by StochasticBlock, i.e., core SMS++. #
# #
# Note that, conversely, $(SMS++INC) is also 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 StochasticBlock. #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(SMS++INC) = the -I$( core SMS++ directory ) #
# $(SMS++OBJ) = the core SMS++ library #
# $(StcBlkSDR) = the directory where the source is #
# #
# Output: $(StcBlkOBJ) = the final object(s) / library #
# $(StcBlkH) = the .h files to include #
# $(StcBlkINC) = the -I$( source directory ) #
# #
# Antonio Frangioni #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
StcBlkOBJ = $(StcBlkSDR)/obj/DiscreteScenarioSet.o \
$(StcBlkSDR)/obj/StochasticBlock.o
StcBlkLIB =
StcBlkINC = -I$(StcBlkSDR)/include
StcBlkH = $(StcBlkSDR)/include/ScenarioGenerator.h \
$(StcBlkSDR)/include/DiscreteScenarioSet.h \
$(StcBlkSDR)/include/StochasticBlock.h
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(StcBlkOBJ) $(StcBlkSDR)/*~
# dependencies: every .o from its .cpp + every recursively included .h- - - -
$(StcBlkSDR)/obj/StochasticBlock.o: $(StcBlkSDR)/src/StochasticBlock.cpp \
$(StcBlkSDR)/include/StochasticBlock.h $(SMS++OBJ)
$(CC) -c $(StcBlkSDR)/src/StochasticBlock.cpp -o $@ $(StcBlkINC) \
$(SMS++INC) $(SW)
# Note: DiscreteScenarioSet requires CapacitatedFacilityLocationBlock for
# scenario reduction functionality. The $(CFLBkINC) dependency must be
# provided by the including makefile when DiscreteScenarioSet is used.
$(StcBlkSDR)/obj/DiscreteScenarioSet.o: \
$(StcBlkSDR)/src/DiscreteScenarioSet.cpp \
$(StcBlkSDR)/include/ScenarioGenerator.h \
$(StcBlkSDR)/include/DiscreteScenarioSet.h $(SMS++OBJ)
$(CC) -c $(StcBlkSDR)/src/DiscreteScenarioSet.cpp -o $@ \
$(StcBlkINC) $(CFLBkINC) $(SMS++INC) $(SW)
########################## End of makefile ###################################