File: Makefile.in

package info (click to toggle)
clp 1.16.11%2Brepack1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 11,116 kB
  • ctags: 6,811
  • sloc: cpp: 178,972; sh: 8,845; xml: 3,682; makefile: 455; ansic: 81
file content (160 lines) | stat: -rw-r--r-- 5,403 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Copyright (C) 2006 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.

# $Id: Makefile.in 726 2006-04-17 04:16:00Z andreasw $

##########################################################################
#    You can modify this example makefile to fit for your own program.   #
#    Usually, you only need to change the five CHANGEME entries below.   #
##########################################################################

# To compile other examples, either changed the following line, or
# add the argument DRIVER=problem_name to make
DRIVER = driver

# CHANGEME: This should be the name of your executable
EXE = $(DRIVER)@EXEEXT@

# CHANGEME: Here is the name of all object files corresponding to the source
#           code that you wrote in order to define the problem statement
OBJS =  $(DRIVER).@OBJEXT@ 

# CHANGEME: Additional libraries
ADDLIBS =

# CHANGEME: Additional flags for compilation (e.g., include flags)
ADDINCFLAGS =

# CHANGEME: Directory to the sources for the (example) problem definition
# files
SRCDIR = @srcdir@
VPATH = @srcdir@

##########################################################################
#  Usually, you don't have to change anything below.  Note that if you   #
#  change certain compiler options, you might have to recompile the      #
#  COIN package.                                                         #
##########################################################################

COIN_HAS_PKGCONFIG = @COIN_HAS_PKGCONFIG_TRUE@TRUE
COIN_CXX_IS_CL = @COIN_CXX_IS_CL_TRUE@TRUE
COIN_HAS_SAMPLE = @COIN_HAS_SAMPLE_TRUE@TRUE
COIN_HAS_NETLIB = @COIN_HAS_NETLIB_TRUE@TRUE

# C++ Compiler command
CXX = @CXX@

# C++ Compiler options
CXXFLAGS = @CXXFLAGS@

# additional C++ Compiler options for linking
CXXLINKFLAGS = @RPATH_FLAGS@

# C Compiler command
CC = @CC@

# C Compiler options
CFLAGS = @CFLAGS@

# Sample data directory
ifeq ($(COIN_HAS_SAMPLE), TRUE)
  ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
    CXXFLAGS += -DSAMPLEDIR=\"`PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --variable=datadir coindatasample`\"
      CFLAGS += -DSAMPLEDIR=\"`PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --variable=datadir coindatasample`\"
  else
    CXXFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA_INSTALLED@\"
      CFLAGS += -DSAMPLEDIR=\"@SAMPLE_DATA_INSTALLED@\"
  endif
endif

# Netlib data directory
ifeq ($(COIN_HAS_NETLIB), TRUE)
  ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
    CXXFLAGS += -DNETLIBDIR=\"`PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --variable=datadir coindatanetlib`\"
      CFLAGS += -DNETLIBDIR=\"`PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --variable=datadir coindatanetlib`\"
  else
    CXXFLAGS += -DNETLIBDIR=\"@NETLIB_DATA_INSTALLED@\"
      CFLAGS += -DNETLIBDIR=\"@NETLIB_DATA_INSTALLED@\"
  endif
endif

# Include directories (we use the CYGPATH_W variables to allow compilation with Windows compilers)
ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
  INCL = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --cflags clp`
else
  INCL = @CLPLIB_CFLAGS_INSTALLED@
endif
INCL += $(ADDINCFLAGS)

# Linker flags
ifeq ($(COIN_HAS_PKGCONFIG), TRUE)
  LIBS = `PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ @PKG_CONFIG@ --libs clp`
else
  ifeq ($(COIN_CXX_IS_CL), TRUE)
    LIBS = -link -libpath:`$(CYGPATH_W) @abs_lib_dir@` libClpSolver.lib libClp.lib @CLPLIB_LIBS_INSTALLED@
  else
    LIBS = -L@abs_lib_dir@ -lClpSolver -lClp @CLPLIB_LIBS_INSTALLED@
  endif
endif

# The following is necessary under cygwin, if native compilers are used
CYGPATH_W = @CYGPATH_W@

# Here we list all possible generated objects or executables to delete them
CLEANFILES = \
	addBits.@OBJEXT@ addBits@EXEEXT@ \
	addColumns.@OBJEXT@ addColumns@EXEEXT@ \
	addRows.@OBJEXT@ addRows@EXEEXT@ \
	decomp2.@OBJEXT@ decomp2@EXEEXT@ \
	decomp3.@OBJEXT@ decomp3@EXEEXT@ \
	decompose.@OBJEXT@ decompose@EXEEXT@ \
	defaults.@OBJEXT@ defaults@EXEEXT@ \
	driver2.@OBJEXT@ driver2@EXEEXT@ \
	driver.@OBJEXT@ driver@EXEEXT@ \
	driverC.@OBJEXT@ driverC@EXEEXT@ \
	dualCuts.@OBJEXT@ dualCuts@EXEEXT@ \
	ekk.@OBJEXT@ ekk@EXEEXT@ \
	ekk_interface.@OBJEXT@ ekk_interface@EXEEXT@ \
	hello.@OBJEXT@ hello@EXEEXT@ \
	makeDual.@OBJEXT@ makeDual@EXEEXT@ \
	minimum.@OBJEXT@ minimum@EXEEXT@ \
	modify.@OBJEXT@ modify@EXEEXT@ \
	network.@OBJEXT@ network@EXEEXT@ \
	pdco.@OBJEXT@ pdco@EXEEXT@ \
	piece.@OBJEXT@ piece@EXEEXT@ \
	rowColumn.@OBJEXT@ rowColumn@EXEEXT@ \
	sprint2.@OBJEXT@ sprint2@EXEEXT@ \
	sprint.@OBJEXT@ sprint@EXEEXT@ \
	testBarrier.@OBJEXT@ testBarrier@EXEEXT@ \
	testBasis.@OBJEXT@ testBasis@EXEEXT@ \
	testGub2.@OBJEXT@ testGub2@EXEEXT@ \
	testGub.@OBJEXT@ testGub@EXEEXT@ \
	testQP.@OBJEXT@ testQP@EXEEXT@ \
	useVolume.@OBJEXT@ useVolume@EXEEXT@

all: $(EXE)

.SUFFIXES: .cpp .c .o .obj

$(EXE): $(OBJS)
	bla=;\
	for file in $(OBJS); do bla="$$bla `$(CYGPATH_W) $$file`"; done; \
	$(CXX) $(CXXLINKFLAGS) $(CXXFLAGS) -o $@ $$bla $(LIBS) $(ADDLIBS)

clean:
	rm -rf $(CLEANFILES)

.cpp.o:
	$(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<


.cpp.obj:
	$(CXX) $(CXXFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`

.c.o:
	$(CC) $(CFLAGS) $(INCL) -c -o $@ `test -f '$<' || echo '$(SRCDIR)/'`$<


.c.obj:
	$(CC) $(CFLAGS) $(INCL) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(SRCDIR)/$<'; fi`