-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmakefile-c
52 lines (44 loc) · 2.81 KB
/
makefile-c
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
##############################################################################
################################ makefile-c ##################################
##############################################################################
# #
# makefile of MCFCplex #
# all modules are defined here #
# #
# Input: $(CC) = compiler command #
# $(SW) = compiler options #
# $(MCFClH) = the include files for MCFClass #
# $(MCFClINC) = the -I$( MCFClass.h directory ) #
# $(MCFCxDIR) = the directory where the source is #
# #
# Output: $(MCFCxOBJ) = the final object(s) / library #
# $(MCFCxLIB) = external libraries + -L< libdirs > #
# $(MCFCxH) = the .h files to include #
# $(MCFCxINC) = the -I$( include directories ) #
# #
# Antonio Frangioni #
# Dipartimento di Informatica #
# Universita' di Pisa #
# #
##############################################################################
# clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
clean::
rm -f $(MCFCxDIR)/*.o $(MCFCxDIR)/*~
# 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
# *LIB external libraries + -L< libdirs >
# *H is the list of all include files
# *INC is the -I< include directories >
# cplex external libraries
include $(MCFCxDIR)/../extlib/makefile-libCPLEX
# MCFCplex (the makefile requiring all external modules in input)
include $(MCFCxDIR)/makefile
# macros to be exported - - - - - - - - - - - - - - - - - - - - - - - - - - -
# append external libraries to MCFCplex as defined in the makefile, thus
# the := assignment has to be used (hope you have GNU make)
MCFCxLIB := $(MCFCxLIB) $(libCPLEXLIB)
MCFCxINC := $(MCFCxINC) $(libCPLEXINC)
############################# End of makefile ################################