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

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

now that I understand .am

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