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

Last change on this file since 819 was 790, checked in by andreasw, 14 years ago

use AM_CPPFLAGS

File size: 2.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@
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
72all: $(EXE)
73
74.SUFFIXES: .cpp .c .o .obj
75
76$(EXE): $(OBJS)
77        bla=;\
78        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
79        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
80
81clean:
82        rm -rf $(EXE) $(OBJS)
83
84.cpp.o:
85        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
86
87
88.cpp.obj:
89        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
90
91.c.o:
92        $(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
93
94
95.c.obj:
96        $(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.