| 1 |
############################################################################## |
| 2 |
############################################################################## |
| 3 |
# # |
| 4 |
# This file is part of a demonstration application for use with the # |
| 5 |
# SYMPHONY MILP Solver Framework. This application is a solver for # |
| 6 |
# Set Partitioning Problems. # |
| 7 |
# # |
| 8 |
# (c) Copyright 2005 Marta Eso and Ted Ralphs. All Rights Reserved. # |
| 9 |
# # |
| 10 |
# This application was originally developed by Marta Eso and was modified # |
| 11 |
# Ted Ralphs ([email protected]) # |
| 12 |
# # |
| 13 |
# This software is licensed under the Eclipse Public License. Please see # |
| 14 |
# accompanying file for terms. # |
| 15 |
# # |
| 16 |
############################################################################## |
| 17 |
############################################################################## |
| 18 |
|
| 19 |
############################################################################## |
| 20 |
# First, we have to define some variables that will be used |
| 21 |
############################################################################## |
| 22 |
|
| 23 |
############################################################################## |
| 24 |
# SYMPHONY's home directory |
| 25 |
############################################################################## |
| 26 |
|
| 27 |
SYMPHONYROOT = ../.. |
| 28 |
|
| 29 |
############################################################################## |
| 30 |
# The home directory of the user files (must be an absolute path) |
| 31 |
############################################################################## |
| 32 |
|
| 33 |
USERROOT = . |
| 34 |
|
| 35 |
############################################################################## |
| 36 |
# The customized name of the master program (if desired) |
| 37 |
############################################################################## |
| 38 |
|
| 39 |
MASTERNAME = spp |
| 40 |
|
| 41 |
############################################################################## |
| 42 |
# These are only needed if parallel computation is used. Please see the |
| 43 |
# explanation of these variables in SYMPHONY's configuration file. |
| 44 |
############################################################################## |
| 45 |
|
| 46 |
COMPILE_IN_TM = TRUE |
| 47 |
COMPILE_IN_LP = TRUE |
| 48 |
COMPILE_IN_CG = TRUE |
| 49 |
COMPILE_IN_CP = TRUE |
| 50 |
|
| 51 |
############################################################################## |
| 52 |
# This section is for listing SPP source file names |
| 53 |
############################################################################## |
| 54 |
|
| 55 |
USER_COMMON_SRC = spp_common.c |
| 56 |
|
| 57 |
USER_CG_SRC = spp_cg.c |
| 58 |
|
| 59 |
USER_CP_SRC = spp_cp.c |
| 60 |
|
| 61 |
USER_DG_SRC = spp_dg.c |
| 62 |
|
| 63 |
USER_LP_SRC = spp_lp_branch.c spp_lp.c |
| 64 |
ifeq ($(COMPILE_IN_CG),TRUE) |
| 65 |
USER_LP_SRC += $(USER_CG_SRC) |
| 66 |
endif |
| 67 |
|
| 68 |
USER_TM_SRC = |
| 69 |
ifeq ($(COMPILE_IN_LP),TRUE) |
| 70 |
USER_TM_SRC += $(USER_LP_SRC) |
| 71 |
endif |
| 72 |
ifeq ($(COMPILE_IN_CP),TRUE) |
| 73 |
USER_TM_SRC += $(USER_CP_SRC) |
| 74 |
endif |
| 75 |
|
| 76 |
USER_MASTER_SRC = spp_main.c spp_master.c spp_master_functions.c \ |
| 77 |
$(USER_COMMON_SRC) |
| 78 |
|
| 79 |
ifeq ($(COMPILE_IN_TM),TRUE) |
| 80 |
USER_MASTER_SRC += $(USER_TM_SRC) |
| 81 |
endif |
| 82 |
|
| 83 |
USER_SRCDIR = |
| 84 |
USER_INCDIR = |
| 85 |
|
| 86 |
############################################################################## |
| 87 |
# This is the flag for the SYMPHONY Makefile to determine whether |
| 88 |
# SYMPHONY is being compiled by itself or as part of a user-defined |
| 89 |
# application. You shouldn't need to modify this variable. |
| 90 |
############################################################################## |
| 91 |
|
| 92 |
USE_SYM_APPL = TRUE |
| 93 |
|
| 94 |
############################################################################## |
| 95 |
# If you want to build SYMPHONY in a directory outside the source tree, |
| 96 |
# uncomment this and fill in the directory here. Setting these variables will |
| 97 |
# cause object, library, and binary files associated with SYMPHONY and the |
| 98 |
# user's application to be built and installed in the corresponding |
| 99 |
# directories. This is helpful if the user doesn't have write access to the |
| 100 |
# directory where SYMPHONY is installed. |
| 101 |
############################################################################## |
| 102 |
|
| 103 |
SYMBUILDDIR = $(SYMPHONYROOT) |
| 104 |
USERBUILDDIR = $(USERROOT) |
| 105 |
|
| 106 |
############################################################################## |
| 107 |
# Include the SYMPHONY makefile after all the source file names (and before |
| 108 |
# any used-defined targets!) |
| 109 |
############################################################################## |
| 110 |
|
| 111 |
include $(SYMPHONYROOT)/Makefile |