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

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

add CbcSolverLink?

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        CbcSolverLink.@OBJEXT@ \
26        ClpDynamicInterface.@OBJEXT@ \
27        ClpQuadInterface.@OBJEXT@ \
28        CoinWarmStartBasisDynamic.@OBJEXT@ \
29        CbcBranchFollow2.@OBJEXT@ \
30        CbcBranchLotsizeSimple.@OBJEXT@ \
31        CbcBranchUser.@OBJEXT@ \
32        CbcBranchLink.@OBJEXT@
33
34# CHANGEME: Additional libraries
35ADDLIBS =
36
37# CHANGEME: Additional flags for compilation (e.g., include flags)
38ADDINCFLAGS =
39
40# CHANGEME: Directory to the sources for the (example) problem definition
41# files
42SRCDIR = @srcdir@
43VPATH = @srcdir@
44
45##########################################################################
46#  Usually, you don't have to change anything below.  Note that if you   #
47#  change certain compiler options, you might have to recompile the      #
48#  package.                                                              #
49##########################################################################
50
51# C++ Compiler command
52CXX = @CXX@
53
54# C++ Compiler options
55CXXFLAGS = @CXXFLAGS@
56
57# additional C++ Compiler options for linking
58CXXLINKFLAGS = @RPATH_FLAGS@
59
60# Directory with COIN header files
61COININCDIR = @abs_include_dir@
62
63# Directory with COIN libraries
64COINLIBDIR = @abs_lib_dir@
65
66# Libraries necessary to link with Clp
67LIBS = -L$(COINLIBDIR) -lCbc -lCgl -lOsiClp -lOsiCbc -lOsi -lClp -lCoinUtils \
68        @ADDLIBS@ \
69        `cat $(COINLIBDIR)/cgl_addlibs.txt` \
70        `cat $(COINLIBDIR)/osi_addlibs.txt` \
71        `cat $(COINLIBDIR)/clp_addlibs.txt` \
72        `cat $(COINLIBDIR)/coinutils_addlibs.txt`
73
74# Necessary Include dirs (we use the CYGPATH_W variables to allow
75# compilation with Windows compilers)
76INCL =  -I`$(CYGPATH_W) $(COININCDIR)` $(ADDINCFLAGS)
77
78# The following is necessary under cygwin, if native compilers are used
79CYGPATH_W = @CYGPATH_W@
80
81# Here we list all possible generated objects or executables to delete them
82CLEANFILES = \
83        crew.@OBJEXT@ crew@EXEEXT@ \
84        barrier.@OBJEXT@ barrier@EXEEXT@ \
85        driver2.@OBJEXT@ driver2@EXEEXT@ \
86        driver.@OBJEXT@ driver@EXEEXT@ \
87        dynamic.@OBJEXT@ dynamic@EXEEXT@ \
88        fast0507b.@OBJEXT@ fast0507b@EXEEXT@ \
89        fast0507.@OBJEXT@ fast0507@EXEEXT@ \
90        gear.@OBJEXT@ gear@EXEEXT@ \
91        hotstart.@OBJEXT@ hotstart@EXEEXT@ \
92        link.@OBJEXT@ link@EXEEXT@ \
93        longthin.@OBJEXT@ longthin@EXEEXT@ \
94        lotsize.@OBJEXT@ lotsize@EXEEXT@ \
95        minimum.@OBJEXT@ minimum@EXEEXT@ \
96        nway.@OBJEXT@ nway@EXEEXT@ \
97        qmip.@OBJEXT@ qmip@EXEEXT@ \
98        qmip2.@OBJEXT@ qmip2@EXEEXT@ \
99        repeat.@OBJEXT@ repeat@EXEEXT@ \
100        sample1.@OBJEXT@ sample1@EXEEXT@ \
101        sample2.@OBJEXT@ sample2@EXEEXT@ \
102        sample3.@OBJEXT@ sample3@EXEEXT@ \
103        sample4.@OBJEXT@ sample4@EXEEXT@ \
104        sample5.@OBJEXT@ sample5@EXEEXT@ \
105        sos.@OBJEXT@ sos@EXEEXT@ \
106        sudoku.@OBJEXT@ sudoku@EXEEXT@
107
108all: $(EXE)
109
110.SUFFIXES: .cpp .c .o .obj
111
112$(EXE): $(OBJS)
113        bla=;\
114        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
115        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
116
117clean:
118        rm -rf $(CLEANFILES) $(OBJS)
119
120.cpp.o:
121        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
122
123
124.cpp.obj:
125        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
126
127.c.o:
128        $(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
129
130
131.c.obj:
132        $(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.