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

Last change on this file since 1469 was 1469, checked in by stefan, 9 years ago

fix copy-and-paste error

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        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@COIN_HAS_SAMPLE_TRUE@CXXFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA@\"
53@COIN_HAS_MIPLIB3_TRUE@CXXFLAGS += -DMIPLIB3DIR=\"@MIPLIB3_DATA@\"
54
55# C Compiler options
56CFLAGS = @CFLAGS@
57@COIN_HAS_SAMPLE_TRUE@CFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA@\"
58
59# additional C++ Compiler options for linking
60CXXLINKFLAGS = @RPATH_FLAGS@
61
62# Directory with COIN header files
63COININCDIR = @abs_include_dir@/coin
64
65# Directory with COIN libraries
66COINLIBDIR = @abs_lib_dir@/coin
67
68# Libraries necessary to link with Cbc
69LIBS = @COINDEPEND_LIBS@ @CLP_LIBS@ -L$(COINLIBDIR) -lCbcSolver -lCbc -lOsiCbc @ADDLIBS@
70
71# Necessary Include dirs (we use the CYGPATH_W variables to allow
72# compilation with Windows compilers)
73INCL = @COINDEPEND_CFLAGS@ @CLP_CFLAGS@ -I`$(CYGPATH_W) $(COININCDIR)` $(ADDINCFLAGS)
74
75# The following is necessary under cygwin, if native compilers are used
76CYGPATH_W = @CYGPATH_W@
77
78# Here we list all possible generated objects or executables to delete them
79CLEANFILES = \
80        crew.@OBJEXT@ crew@EXEEXT@ \
81        barrier.@OBJEXT@ barrier@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) $(OBJS)
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.