source: trunk/Alps/examples/Abc/Makefile.in @ 277

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

first working version with autotools

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# CHANGEME: This should be the name of your executable
13EXE = abc@EXEEXT@
14
15# CHANGEME: Here is the name of all object files corresponding to the source
16#           code that you wrote in order to define the problem statement
17OBJS =  AbcBranchBase.@OBJEXT@ \
18        AbcBranchActual.@OBJEXT@ \
19        AbcCutGenerator.@OBJEXT@ \
20        AbcHeuristic.@OBJEXT@ \
21        AbcMessage.@OBJEXT@ \
22        AbcMain.@OBJEXT@ \
23        AbcModel.@OBJEXT@ \
24        AbcParams.@OBJEXT@ \
25        AbcSolution.@OBJEXT@ \
26        AbcTreeNode.@OBJEXT@
27
28# CHANGEME: Additional libraries
29ADDLIBS =
30
31# CHANGEME: Additional flags for compilation (e.g., include flags)
32ADDINCFLAGS =
33
34# CHANGEME: Directory to the sources for the (example) problem definition
35# files
36SRCDIR = @srcdir@
37VPATH = @srcdir@
38
39##########################################################################
40#  Usually, you don't have to change anything below.  Note that if you   #
41#  change certain compiler options, you might have to recompile the      #
42#  COIN package.                                                         #
43##########################################################################
44
45# C++ Compiler command
46CXX = @CXX@
47
48# C++ Compiler options
49CXXFLAGS = @CXXFLAGS@
50
51# additional C++ Compiler options for linking
52CXXLINKFLAGS = @RPATH_FLAGS@
53
54# Directory with COIN header files
55COININCDIR = @abs_include_dir@
56
57# Directory with COIN libraries
58COINLIBDIR = @abs_lib_dir@
59
60# Libraries necessary to link with Clp
61LIBS = -L$(COINLIBDIR) -lAlps -lCgl -lOsiClp -lOsi -lClp -lCoinUtils \
62        @ADDLIBS@ \
63        `cat $(COINLIBDIR)/cgl_addlibs.txt` \
64        `cat $(COINLIBDIR)/osi_addlibs.txt` \
65        `cat $(COINLIBDIR)/clp_addlibs.txt` \
66        `cat $(COINLIBDIR)/coinutils_addlibs.txt`
67
68# Necessary Include dirs (we use the CYGPATH_W variables to allow
69# compilation with Windows compilers)
70INCL =  -I`$(CYGPATH_W) $(COININCDIR)` $(ADDINCFLAGS)
71
72# The following is necessary under cygwin, if native compilers are used
73CYGPATH_W = @CYGPATH_W@
74
75all: $(EXE)
76
77.SUFFIXES: .cpp .c .o .obj
78
79$(EXE): $(OBJS)
80        bla=;\
81        for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
82        $(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(ADDLIBS) $(LIBS)
83
84clean:
85        rm -rf $(EXE) $(OBJS)
86
87.cpp.o:
88        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<
89
90
91.cpp.obj:
92        $(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`
Note: See TracBrowser for help on using the repository browser.