source: stable/2.1/Cbc/examples/Makefile.in @ 956

Last change on this file since 956 was 956, checked in by forrest, 12 years ago

out branchlink

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