source: trunk/Clp/examples/Makefile.in @ 1171

Last change on this file since 1171 was 1171, checked in by forrest, 14 years ago

put back pdco in case wanted

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