source: trunk/Cbc/examples/Makefile.in @ 1422

Last change on this file since 1422 was 865, checked in by tkr, 12 years ago

Changing installation location for addlibs.txt file

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