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