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

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

change from COIN_HAS_MODULE to COIN_HAS_PACKAGE

File size: 4.3 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 = @CBCLIB_LIBS@ -L$(COINLIBDIR) -L$(COINLIBDIR)/ThirdParty -lCbcSolver -lCbc -lOsiCbc
70
71# Necessary Include dirs (we use the CYGPATH_W variables to allow
72# compilation with Windows compilers)
73# COININCDIR should come first, so that the include directory of the Cbc installation is checked first
74# for header files; this is necessary if the installed header files differ from their source header files (esp., XxxConfig.h)
75INCL = -I`$(CYGPATH_W) $(COININCDIR)` @COINDEPEND_CFLAGS@ @CLP_CFLAGS@ $(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        barrier.@OBJEXT@ barrier@EXEEXT@ \
84        driver2.@OBJEXT@ driver2@EXEEXT@ \
85        driver.@OBJEXT@ driver@EXEEXT@ \
86        dynamic.@OBJEXT@ dynamic@EXEEXT@ \
87        fast0507b.@OBJEXT@ fast0507b@EXEEXT@ \
88        fast0507.@OBJEXT@ fast0507@EXEEXT@ \
89        gear.@OBJEXT@ gear@EXEEXT@ \
90        hotstart.@OBJEXT@ hotstart@EXEEXT@ \
91        link.@OBJEXT@ link@EXEEXT@ \
92        longthin.@OBJEXT@ longthin@EXEEXT@ \
93        lotsize.@OBJEXT@ lotsize@EXEEXT@ \
94        minimum.@OBJEXT@ minimum@EXEEXT@ \
95        nway.@OBJEXT@ nway@EXEEXT@ \
96        qmip.@OBJEXT@ qmip@EXEEXT@ \
97        qmip2.@OBJEXT@ qmip2@EXEEXT@ \
98        repeat.@OBJEXT@ repeat@EXEEXT@ \
99        sample1.@OBJEXT@ sample1@EXEEXT@ \
100        sample2.@OBJEXT@ sample2@EXEEXT@ \
101        sample3.@OBJEXT@ sample3@EXEEXT@ \
102        sample4.@OBJEXT@ sample4@EXEEXT@ \
103        sample5.@OBJEXT@ sample5@EXEEXT@ \
104        sos.@OBJEXT@ sos@EXEEXT@ \
105        sudoku.@OBJEXT@ sudoku@EXEEXT@
106
107all: $(EXE)
108
109.SUFFIXES: .cpp .c .o .obj
110
111$(EXE): $(OBJS)
112        bla=;\
113        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
114        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
115
116clean:
117        rm -rf $(CLEANFILES) $(OBJS)
118
119.cpp.o:
120        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
121
122
123.cpp.obj:
124        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
125
126.c.o:
127        $(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
128
129
130.c.obj:
131        $(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.