-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
76 lines (57 loc) · 2.51 KB
/
Copy pathmakefile
File metadata and controls
76 lines (57 loc) · 2.51 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
67
68
69
70
71
72
73
74
75
76
##############################################################################
################################ makefile ####################################
##############################################################################
# #
# makefile of test (for MMCFBlock) #
# #
# Antonio Frangioni #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# module name
NAME = MMCF_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 >
# OPT*** stuff
#OPTUxH = $(libMMCFSDR)OPTUtils/OPTUtils.h $(libMMCFSDR)OPTUtils/OPTtypes.h \
# $(libMMCFSDR)OPTUtils/OPTvect.h
#OPTUxINC = -I$(libMMCFSDR)OPTUtils
# core SMS++
SMS++SDR = ../../SMS++
include $(SMS++SDR)/lib/makefile-inc
# MILPSolver
MILPSSDR = ../../MILPSolver
include $(MILPSSDR)/makefile-s
# MMCFBlock
MMCFSDR = ../../MMCFBlock
include $(MMCFSDR)/makefile-s
# MMCFClass
libMMCFSDR = $(DIR)/MMCFClass
include $(libMMCFSDR)/lib/makefile-c
# main module (linking phase) - - - - - - - - - - - - - - - - - - - - - - - -
# object files
MOBJ = $(MMCFOBJ) $(MILPSOBJ) $(libMMCFOBJ) $(SMS++OBJ)
# libraries
MLIB = $(SMS++LIB) $(MILPSLIB) $(MMCFLIB) $(libMMCFLIB)
$(DIR)/$(NAME): $(MOBJ) $(DIR)/main.o
$(CC) -o $(DIR)/$(NAME) $(DIR)/main.o $(MOBJ) $(MLIB) $(SW)
# dependencies: every .o from its .cpp + every recursively included .h- - - -
# include directives
MINC = $(libMMCFINC) $(SMS++INC) $(MILPSINC) $(MMCFINC) $(OPTUxINC)
# includes
MH = $(SMS++H) $(MILPSH) $(MMCFH) $(libMMCFH) $(OPTUxH)
# compile command
$(DIR)/main.o: $(DIR)/main.cpp $(MH)
$(CC) -c $*.cpp -o $@ $(MINC) $(SW)
############################ End of makefile ################################