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 |
---|
14 | DRIVER = driver |
---|
15 | |
---|
16 | # CHANGEME: This should be the name of your executable |
---|
17 | EXE = $(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 |
---|
21 | OBJS = $(DRIVER).@OBJEXT@ |
---|
22 | |
---|
23 | # CHANGEME: Additional libraries |
---|
24 | ADDLIBS = |
---|
25 | |
---|
26 | # CHANGEME: Additional flags for compilation (e.g., include flags) |
---|
27 | ADDINCFLAGS = |
---|
28 | |
---|
29 | # CHANGEME: Directory to the sources for the (example) problem definition |
---|
30 | # files |
---|
31 | SRCDIR = @srcdir@ |
---|
32 | VPATH = @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 |
---|
41 | CXX = @CXX@ |
---|
42 | |
---|
43 | # C++ Compiler options |
---|
44 | CXXFLAGS = @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 |
---|
49 | CXXLINKFLAGS = @RPATH_FLAGS@ |
---|
50 | |
---|
51 | # C Compiler command |
---|
52 | CC = @CC@ |
---|
53 | |
---|
54 | # C Compiler options |
---|
55 | CFLAGS = @CFLAGS@ |
---|
56 | @COIN_HAS_SAMPLE_TRUE@CFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA@\" |
---|
57 | @COIN_HAS_NETLIB_TRUE@CFLAGS += -DNETLIBDIR=\"@NETLIB_DATA@\" |
---|
58 | |
---|
59 | # Compiler flags (we use the CYGPATH_W variables to allow compilation with Windows compilers) |
---|
60 | @COIN_HAS_PKGCONFIG_TRUE@INCL = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --cflags clp` $(ADDINCFLAGS) |
---|
61 | @COIN_HAS_PKGCONFIG_FALSE@INCL = @CLPLIB_CFLAGS_INSTALLED@ $(ADDINCFLAGS) |
---|
62 | |
---|
63 | # Linker flags |
---|
64 | @COIN_HAS_PKGCONFIG_TRUE@@COIN_CXX_IS_CL_FALSE@LIBS = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --libs clp` |
---|
65 | @COIN_HAS_PKGCONFIG_TRUE@@COIN_CXX_IS_CL_TRUE@LIBS = /link: `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --msvc-syntax --libs clp` |
---|
66 | @COIN_HAS_PKGCONFIG_FALSE@LIBS = -L@abs_lib_dir@ -lClp @CLPLIB_LIBS_INSTALLED@ |
---|
67 | |
---|
68 | # The following is necessary under cygwin, if native compilers are used |
---|
69 | CYGPATH_W = @CYGPATH_W@ |
---|
70 | |
---|
71 | # Here we list all possible generated objects or executables to delete them |
---|
72 | CLEANFILES = \ |
---|
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 | |
---|
99 | all: $(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 $(LIBS) $(ADDLIBS) |
---|
107 | |
---|
108 | clean: |
---|
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` |
---|