Repository navigation
Expand file tree
/
Copy pathmakefile
More file actions
63 lines (47 loc) · 2.25 KB
/
Copy pathmakefile
File metadata and controls
63 lines (47 loc) · 2.25 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
##############################################################################
################################ makefile ####################################
##############################################################################
# #
# makefile of test (for SingleFlowDCRBlock) #
# #
# Donato Meoli #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# module name
NAME = SingleFlowDCRBlock_test
# basic directory
DIR = .
# common stuff
include ../makefile_common
# 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(s) / library
# *LIB is the external libraries + -L< libdirs >
# *H is the list of all include files
# *INC is the -I< include directories >
# SingleFlowDCRBlock (comprised the core SMS++)
SFDCRBkSDR = ../../SingleFlowDCRBlock
include $(SFDCRBkSDR)/makefile-c
# MILPSolver, assuming all dependencies (SMS++) are there already
MILPSSDR = ../../MILPSolver
include $(MILPSSDR)/makefile-s
# main module (linking phase) - - - - - - - - - - - - - - - - - - - - - - - -
# object files
MOBJ = $(CMMNUOBJ) $(SFDCRBkOBJ) $(MILPSOBJ)
# libraries
MLIB = $(SFDCRBkLIB) $(MILPSLIB)
$(DIR)/$(NAME): $(MOBJ) $(DIR)/test.o
$(CC) -o $(DIR)/$(NAME) $(DIR)/test.o $(MOBJ) $(MLIB) $(SW)
# dependencies: every .o from its .cpp + every recursively included .h- - - -
# include directives
MINC = $(SFDCRBkINC) $(MILPSINC) $(CMMNUINC)
# includes
MH = $(SFDCRBkH) $(MILPSH) $(CMMNUH)
# compile command
$(DIR)/test.o: $(DIR)/test.cpp $(MH)
$(CC) -c $(DIR)/test.cpp -o $@ $(MINC) $(SW)
############################ End of makefile #################################