-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
187 lines (146 loc) · 4.78 KB
/
Makefile.am
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
if BUNDLED_ISL
MAYBE_ISL = isl
endif
if BUNDLED_BARVINOK
MAYBE_BARVINOK = barvinok
endif
if BUNDLED_PET
MAYBE_PET = pet
endif
SUBDIRS = $(MAYBE_ISL) $(MAYBE_BARVINOK) $(MAYBE_PET) tests
ACLOCAL_AMFLAGS = -I m4
# -------------------------------------------------------------
if BUNDLED_ISL
ISL_LA = $(top_builddir)/isl/libisl.la
endif
if BUILD_ISL
ISL_LA = $(ISL_BUILDDIR)/libisl.la
endif
if BUNDLED_BARVINOK
BARVINOK_LA = $(top_builddir)/barvinok/libbarvinok.la
endif
if BUILD_BARVINOK
BARVINOK_LA = $(BARVINOK_BUILDDIR)/libbarvinok.la
endif
if BUNDLED_PET
PET_LA = $(top_builddir)/pet/libpet.la
endif
if BUILD_PET
PET_LA = $(PET_BUILDDIR)/libpet.la
endif
if DEBUG
AM_CFLAGS = -g3 -O0
AM_CXXFLAGS = -g3 -O0
else
AM_CFLAGS = -O3 -DNDEBUG
AM_CXXFLAGS = -O3 -DNDEBUG
endif
libisl.la:
$(MAKE) $(AM_MAKEFLAGS) -C isl libisl.la
libbarvinok.la:
$(MAKE) $(AM_MAKEFLAGS) -C barvinok libbarvinok.la
libpet.la:
$(MAKE) $(AM_MAKEFLAGS) -C pet libpet.la
# -------------------------------------------------------------
MAINTAINERCLEANFILES = Makefile.in
AM_CPPFLAGS = @ISL_CFLAGS@ @BARVINOK_CFLAGS@ @PET_CFLAGS@ -I$(top_builddir)/
AM_LDFLAGS = -lcplex -lconcert -lilocplex -lm -lpthread -ldl -lstdc++
LIB_ISL = $(ISL_LA) @ISL_LIBS@
LIB_BARVINOK = $(BARVINOK_LA) @BARVINOK_LIBS@
LIB_PET = $(PET_LA) @PET_LIBS@
LIB_CPLEX = $(CPLEX_LA) @CPLEX_LIBS@
LINK = $(CXXLINK)
lib_LTLIBRARIES = libbullseye.la
libbullseye_la_DEPENDENCIES = libpet.la libbarvinok.la libisl.la
libbullseye_la_HEADERS = \
lib/Access.h \
lib/BullsEye.h \
lib/bullseyelib.h \
lib/Definitions.h\
lib/HayStack.h \
lib/isl-helpers.h \
lib/op.h \
lib/Program.h \
lib/Timer.h
libbullseye_la_SOURCES = \
lib/Access.cpp \
lib/Access.h \
lib/BullsEye.cpp \
lib/BullsEye.h \
lib/bullseyelib.cpp \
lib/bullseyelib.h \
lib/Definitions.h\
lib/HayStack.cpp \
lib/HayStack.h \
lib/isl-helpers.cpp \
lib/isl-helpers.h \
lib/op.h \
lib/Program.cpp \
lib/Program.h \
lib/Timer.cpp \
lib/Timer.h
libbullseye_la_CPPFLAGS = $(AM_CPPFLAGS) $(BOOST_CPPFLAGS)
libbullseye_la_LDFLAGS = -static
libbullseye_la_LIBADD = $(LIB_ISL) \
$(LIB_BARVINOK) \
$(LIB_PET) \
$(CPLEX_HOME)/cplex/lib/x86-64_linux/static_pic/libcplex.a \
$(CPLEX_HOME)/cplex/lib/x86-64_linux/static_pic/libilocplex.a \
$(CPLEX_HOME)/concert/lib/x86-64_linux/static_pic/libconcert.a \
$(CPLEX_HOME)/opl/lib/x86-64_linux/static_pic/libilocplex.a \
$(CPLEX_HOME)/opl/lib/x86-64_linux/static_pic/libconcert.a \
$(AM_LDFLAGS)
# build the bullseye program
bin_PROGRAMS = bullseye
bullseye_DEPENDENCIES = libbullseye.la
bullseye_SOURCES = src/main.cpp libbullseye.la
bullseye_CPPFLAGS = $(AM_CPPFLAGS) $(BOOST_CPPFLAGS)
bullseye_LDFLAGS = -static $(BOOST_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LIB)
bullseye_LDADD = libbullseye.la \
$(LIB_ISL) \
$(LIB_BARVINOK) \
$(LIB_PET) \
$(CPLEX_HOME)/cplex/lib/x86-64_linux/static_pic/libcplex.a \
$(CPLEX_HOME)/cplex/lib/x86-64_linux/static_pic/libilocplex.a \
$(CPLEX_HOME)/concert/lib/x86-64_linux/static_pic/libconcert.a \
$(CPLEX_HOME)/opl/lib/x86-64_linux/static_pic/libilocplex.a \
$(CPLEX_HOME)/opl/lib/x86-64_linux/static_pic/libconcert.a
libbullseye_ladir = $(includedir)/bullseye
include_HEADERS = $(libbullseye_la_HEADERS)
install-data-hook:
mkdir -p $(includedir)/isl
cp $(srcdir)/isl/isl-noexceptions.h $(includedir)/isl/isl-noexceptions.h
#BULLSEYE_LA = $(top_builddir)/lib/libbullseye.la
#AM_CPPFLAGS = @ISL_CFLAGS@ @BARVINOK_CFLAGS@ @PET_CFLAGS@ -I$(top_builddir)/
#AM_LDFLAGS = -lcplex -lconcert -lilocplex -lm -lpthread -ldl -lstdc++
#LIB_ISL = $(ISL_LA) @ISL_LIBS@
#LIB_BARVINOK = $(BARVINOK_LA) @BARVINOK_LIBS@
#LIB_PET = $(PET_LA) @PET_LIBS@
#LIB_CPLEX = $(CPLEX_LA) @CPLEX_LIBS@
#LINK = $(CXXLINK)
# build the bullseye library
#lib_LIBRARIES = libbullseye.a
#libbullseye_la_SOURCES = \
# lib/bullseyelib.h \
# lib/bullseyelib.cpp
#ACLOCAL_AMFLAGS = -I m4
#
#bin_PROGRAMS = code
#lib_LIBRARIES = libcode.a
#lib_LTLIBRARIES = libcodes.la
#
#code_SOURCES = code.c libo.h libp.h
#code_LDFLAGS = -rpath $(libdir)
#code_LDADD = libcodes.la libcode.a
## or LDADD = libcodes.la libcode.a
#
#libcode_a_SOURCES = functionsp.c
#
#libcodes_la_SOURCES = functionso.c
#libcodes_la_LDFLAGS = -version-info 1:0:0
#bullseye: libbullseye.la
# $(MAKE) $(MFLAGS) -C src bullseye
#info-bullseye:
# $(MAKE) $(MFLAGS) -C src info-bullseye
#test_libbullseye: tests/LibbullseyeALinkTest.cpp
# libtool --mode=link --tag=CC $(CC) $