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

Last change on this file since 425 was 420, checked in by andreasw, 13 years ago

delete all OBJS files as well for clean

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        driver2.@OBJEXT@ driver2@EXEEXT@ \
84        driver.@OBJEXT@ driver@EXEEXT@ \
85        dynamic.@OBJEXT@ dynamic@EXEEXT@ \
86        fast0507b.@OBJEXT@ fast0507b@EXEEXT@ \
87        fast0507.@OBJEXT@ fast0507@EXEEXT@ \
88        gear.@OBJEXT@ gear@EXEEXT@ \
89        hotstart.@OBJEXT@ hotstart@EXEEXT@ \
90        link.@OBJEXT@ link@EXEEXT@ \
91        longthin.@OBJEXT@ longthin@EXEEXT@ \
92        lotsize.@OBJEXT@ lotsize@EXEEXT@ \
93        minimum.@OBJEXT@ minimum@EXEEXT@ \
94        nway.@OBJEXT@ nway@EXEEXT@ \
95        qmip.@OBJEXT@ qmip@EXEEXT@ \
96        qmip2.@OBJEXT@ qmip2@EXEEXT@ \
97        repeat.@OBJEXT@ repeat@EXEEXT@ \
98        sample1.@OBJEXT@ sample1@EXEEXT@ \
99        sample2.@OBJEXT@ sample2@EXEEXT@ \
100        sample3.@OBJEXT@ sample3@EXEEXT@ \
101        sample4.@OBJEXT@ sample4@EXEEXT@ \
102        sample5.@OBJEXT@ sample5@EXEEXT@ \
103        sos.@OBJEXT@ sos@EXEEXT@ \
104        sudoku.@OBJEXT@ sudoku@EXEEXT@
105
106all: $(EXE)
107
108.SUFFIXES: .cpp .c .o .obj
109
110$(EXE): $(OBJS)
111        bla=;\
112        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
113        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
114
115clean:
116        rm -rf $(CLEANFILES) $(OBJS)
117
118.cpp.o:
119        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
120
121
122.cpp.obj:
123        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
124
125.c.o:
126        $(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
127
128
129.c.obj:
130        $(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.