source: stable/1.6/Clp/examples/Makefile.in @ 1145

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

reran autotools; made COIN-wide changes regarding installation of header files and documentation files

File size: 3.8 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
23# CHANGEME: Additional libraries
24ADDLIBS =
25
26# CHANGEME: Additional flags for compilation (e.g., include flags)
27ADDINCFLAGS =
28
29# CHANGEME: Directory to the sources for the (example) problem definition
30# files
31SRCDIR = @srcdir@
32VPATH = @srcdir@
33
34##########################################################################
35#  Usually, you don't have to change anything below.  Note that if you   #
36#  change certain compiler options, you might have to recompile the      #
37#  COIN package.                                                         #
38##########################################################################
39
40# C++ Compiler command
41CXX = @CXX@
42
43# C++ Compiler options
44CXXFLAGS = @CXXFLAGS@
45
46# additional C++ Compiler options for linking
47CXXLINKFLAGS = @RPATH_FLAGS@
48
49# C Compiler command
50CC = @CC@
51
52# C Compiler options
53CFLAGS = @CFLAGS@
54
55# Directory with COIN header files
56COININCDIR = @abs_include_dir@/coin
57
58# Directory with COIN libraries
59COINLIBDIR = @abs_lib_dir@
60
61# Libraries necessary to link with Clp
62LIBS = -L$(COINLIBDIR) -lClp -lCoinUtils \
63        @ADDLIBS@ `cat $(COINLIBDIR)/coinutils_addlibs.txt`
64
65# Necessary Include dirs (we use the CYGPATH_W variables to allow
66# compilation with Windows compilers)
67INCL =  -I`$(CYGPATH_W) $(COININCDIR)` $(ADDINCFLAGS)
68
69# The following is necessary under cygwin, if native compilers are used
70CYGPATH_W = @CYGPATH_W@
71
72# Here we list all possible generated objects or executables to delete them
73CLEANFILES = \
74        addBits.@OBJEXT@ addBits@EXEEXT@ \
75        addColumns.@OBJEXT@ addColumns@EXEEXT@ \
76        addRows.@OBJEXT@ addRows@EXEEXT@ \
77        decompose.@OBJEXT@ decompose@EXEEXT@ \
78        defaults.@OBJEXT@ defaults@EXEEXT@ \
79        driver2.@OBJEXT@ driver2@EXEEXT@ \
80        driver.@OBJEXT@ driver@EXEEXT@ \
81        driverC.@OBJEXT@ driverC@EXEEXT@ \
82        dualCuts.@OBJEXT@ dualCuts@EXEEXT@ \
83        ekk.@OBJEXT@ ekk@EXEEXT@ \
84        ekk_interface.@OBJEXT@ ekk_interface@EXEEXT@ \
85        hello.@OBJEXT@ hello@EXEEXT@ \
86        makeDual.@OBJEXT@ makeDual@EXEEXT@ \
87        minimum.@OBJEXT@ minimum@EXEEXT@ \
88        network.@OBJEXT@ network@EXEEXT@ \
89        piece.@OBJEXT@ piece@EXEEXT@ \
90        rowColumn.@OBJEXT@ rowColumn@EXEEXT@ \
91        sprint2.@OBJEXT@ sprint2@EXEEXT@ \
92        sprint.@OBJEXT@ sprint@EXEEXT@ \
93        testBarrier.@OBJEXT@ testBarrier@EXEEXT@ \
94        testBasis.@OBJEXT@ testBasis@EXEEXT@ \
95        testGub2.@OBJEXT@ testGub2@EXEEXT@ \
96        testGub.@OBJEXT@ testGub@EXEEXT@ \
97        testQP.@OBJEXT@ testQP@EXEEXT@ \
98        useVolume.@OBJEXT@ useVolume@EXEEXT@
99
100all: $(EXE)
101
102.SUFFIXES: .cpp .c .o .obj
103
104$(EXE): $(OBJS)
105        bla=;\
106        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
107        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
108
109clean:
110        rm -rf $(CLEANFILES)
111
112.cpp.o:
113        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
114
115
116.cpp.obj:
117        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
118
119.c.o:
120        $(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
121
122
123.c.obj:
124        $(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.