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

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

change from COIN_HAS_MODULE to COIN_HAS_PACKAGE

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