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

Last change on this file since 1559 was 1559, checked in by stefan, 10 years ago

merge split branch into trunk

File size: 4.0 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@ -DSAMPLEDIR=\"@SAMPLE_DATA@\" -DNETLIBDIR=\"@NETLIB_DATA@\"
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@ -DSAMPLEDIR=\"@SAMPLE_DATA@\" -DNETLIBDIR=\"@NETLIB_DATA@\"
54
55# Directory with COIN header files
56COININCDIR = @abs_include_dir@/coin
57
58# Directory with COIN libraries
59COINLIBDIR = @abs_lib_dir@/coin
60
61# Libraries necessary to link with Clp
62LIBS = @COINUTILS_LIBS@ -L`$(CYGPATH_W) $(COINLIBDIR)` -lClp @ADDLIBS@
63
64# Necessary Include dirs (we use the CYGPATH_W variables to allow
65# compilation with Windows compilers)
66INCL = @COINUTILS_CFLAGS@ -I`$(CYGPATH_W) $(COININCDIR)` $(ADDINCFLAGS)
67
68# The following is necessary under cygwin, if native compilers are used
69CYGPATH_W = @CYGPATH_W@
70
71# Here we list all possible generated objects or executables to delete them
72CLEANFILES = \
73        addBits.@OBJEXT@ addBits@EXEEXT@ \
74        addColumns.@OBJEXT@ addColumns@EXEEXT@ \
75        addRows.@OBJEXT@ addRows@EXEEXT@ \
76        decompose.@OBJEXT@ decompose@EXEEXT@ \
77        defaults.@OBJEXT@ defaults@EXEEXT@ \
78        driver2.@OBJEXT@ driver2@EXEEXT@ \
79        driver.@OBJEXT@ driver@EXEEXT@ \
80        driverC.@OBJEXT@ driverC@EXEEXT@ \
81        dualCuts.@OBJEXT@ dualCuts@EXEEXT@ \
82        ekk.@OBJEXT@ ekk@EXEEXT@ \
83        ekk_interface.@OBJEXT@ ekk_interface@EXEEXT@ \
84        hello.@OBJEXT@ hello@EXEEXT@ \
85        makeDual.@OBJEXT@ makeDual@EXEEXT@ \
86        minimum.@OBJEXT@ minimum@EXEEXT@ \
87        network.@OBJEXT@ network@EXEEXT@ \
88        piece.@OBJEXT@ piece@EXEEXT@ \
89        rowColumn.@OBJEXT@ rowColumn@EXEEXT@ \
90        sprint2.@OBJEXT@ sprint2@EXEEXT@ \
91        sprint.@OBJEXT@ sprint@EXEEXT@ \
92        testBarrier.@OBJEXT@ testBarrier@EXEEXT@ \
93        testBasis.@OBJEXT@ testBasis@EXEEXT@ \
94        testGub2.@OBJEXT@ testGub2@EXEEXT@ \
95        testGub.@OBJEXT@ testGub@EXEEXT@ \
96        testQP.@OBJEXT@ testQP@EXEEXT@ \
97        useVolume.@OBJEXT@ useVolume@EXEEXT@
98
99all: $(EXE)
100
101.SUFFIXES: .cpp .c .o .obj
102
103$(EXE): $(OBJS)
104        bla=;\
105        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
106        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
107
108clean:
109        rm -rf $(CLEANFILES)
110
111.cpp.o:
112        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
113
114
115.cpp.obj:
116        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
117
118.c.o:
119        $(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
120
121
122.c.obj:
123        $(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.