source: branches/devel/Cbc/examples/Makefile.in @ 463

Last change on this file since 463 was 463, checked in by forrest, 13 years ago

for osi methods

File size: 4.1 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5# $Id: Makefile.in 726 2006-04-17 04:16:00Z andreasw $
6
7##########################################################################
8#    You can modify this example makefile to fit for your own program.   #
9#    Usually, you only need to change the five CHANGEME entries below.   #
10##########################################################################
11
12# To compile other examples, either changed the following line, or
13# add the argument DRIVER=problem_name to make
14DRIVER = driver
15
16# CHANGEME: This should be the name of your executable
17EXE = $(DRIVER)@EXEEXT@
18
19# CHANGEME: Here is the name of all object files corresponding to the source
20#           code that you wrote in order to define the problem statement
21OBJS =  $(DRIVER).@OBJEXT@ \
22        CbcCompareUser.@OBJEXT@ \
23        CbcSolver2.@OBJEXT@ \
24        CbcSolver3.@OBJEXT@ \
25        ClpDynamicInterface.@OBJEXT@ \
26        ClpQuadInterface.@OBJEXT@ \
27        CoinWarmStartBasisDynamic.@OBJEXT@ \
28        CbcBranchFollow2.@OBJEXT@ \
29        CbcBranchLotsizeSimple.@OBJEXT@ \
30        CbcBranchUser.@OBJEXT@ \
31        CbcBranchLink.@OBJEXT@
32
33# CHANGEME: Additional libraries
34ADDLIBS =
35
36# CHANGEME: Additional flags for compilation (e.g., include flags)
37ADDINCFLAGS =
38
39# CHANGEME: Directory to the sources for the (example) problem definition
40# files
41SRCDIR = @srcdir@
42VPATH = @srcdir@
43
44##########################################################################
45#  Usually, you don't have to change anything below.  Note that if you   #
46#  change certain compiler options, you might have to recompile the      #
47#  package.                                                              #
48##########################################################################
49
50# C++ Compiler command
51CXX = @CXX@
52
53# C++ Compiler options
54CXXFLAGS = @CXXFLAGS@
55
56# additional C++ Compiler options for linking
57CXXLINKFLAGS = @RPATH_FLAGS@
58
59# Directory with COIN header files
60COININCDIR = @abs_include_dir@
61
62# Directory with COIN libraries
63COINLIBDIR = @abs_lib_dir@
64
65# Libraries necessary to link with Clp
66LIBS = -L$(COINLIBDIR) -lCbc -lCgl -lOsiClp -lOsiCbc -lOsi -lClp -lCoinUtils \
67        @ADDLIBS@ \
68        `cat $(COINLIBDIR)/cgl_addlibs.txt` \
69        `cat $(COINLIBDIR)/osi_addlibs.txt` \
70        `cat $(COINLIBDIR)/clp_addlibs.txt` \
71        `cat $(COINLIBDIR)/coinutils_addlibs.txt`
72
73# Necessary Include dirs (we use the CYGPATH_W variables to allow
74# compilation with Windows compilers)
75INCL =  -I`$(CYGPATH_W) $(COININCDIR)` $(ADDINCFLAGS)
76
77# The following is necessary under cygwin, if native compilers are used
78CYGPATH_W = @CYGPATH_W@
79
80# Here we list all possible generated objects or executables to delete them
81CLEANFILES = \
82        crew.@OBJEXT@ crew@EXEEXT@ \
83        barrier.@OBJEXT@ barrier@EXEEXT@ \
84        driver2.@OBJEXT@ driver2@EXEEXT@ \
85        driver.@OBJEXT@ driver@EXEEXT@ \
86        dynamic.@OBJEXT@ dynamic@EXEEXT@ \
87        fast0507b.@OBJEXT@ fast0507b@EXEEXT@ \
88        fast0507.@OBJEXT@ fast0507@EXEEXT@ \
89        gear.@OBJEXT@ gear@EXEEXT@ \
90        hotstart.@OBJEXT@ hotstart@EXEEXT@ \
91        link.@OBJEXT@ link@EXEEXT@ \
92        longthin.@OBJEXT@ longthin@EXEEXT@ \
93        lotsize.@OBJEXT@ lotsize@EXEEXT@ \
94        minimum.@OBJEXT@ minimum@EXEEXT@ \
95        nway.@OBJEXT@ nway@EXEEXT@ \
96        qmip.@OBJEXT@ qmip@EXEEXT@ \
97        qmip2.@OBJEXT@ qmip2@EXEEXT@ \
98        repeat.@OBJEXT@ repeat@EXEEXT@ \
99        sample1.@OBJEXT@ sample1@EXEEXT@ \
100        sample2.@OBJEXT@ sample2@EXEEXT@ \
101        sample3.@OBJEXT@ sample3@EXEEXT@ \
102        sample4.@OBJEXT@ sample4@EXEEXT@ \
103        sample5.@OBJEXT@ sample5@EXEEXT@ \
104        sos.@OBJEXT@ sos@EXEEXT@ \
105        sudoku.@OBJEXT@ sudoku@EXEEXT@
106
107all: $(EXE)
108
109.SUFFIXES: .cpp .c .o .obj
110
111$(EXE): $(OBJS)
112        bla=;\
113        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
114        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
115
116clean:
117        rm -rf $(CLEANFILES) $(OBJS)
118
119.cpp.o:
120        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
121
122
123.cpp.obj:
124        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
125
126.c.o:
127        $(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
128
129
130.c.obj:
131        $(CC) $(CFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
Note: See TracBrowser for help on using the repository browser.