1
by Patrick Caulfield
Import upstream version 2.00.25 |
1 |
# @configure_input@
|
2 |
#
|
|
3 |
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
|
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
4 |
# Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved.
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
5 |
#
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
6 |
# This file is part of LVM2.
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
7 |
#
|
8 |
# This copyrighted material is made available to anyone wishing to use,
|
|
9 |
# modify, copy, or redistribute it subject to the terms and conditions
|
|
10 |
# of the GNU General Public License v.2.
|
|
11 |
#
|
|
12 |
# You should have received a copy of the GNU General Public License
|
|
13 |
# along with this program; if not, write to the Free Software Foundation,
|
|
14 |
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
15 |
||
16 |
SHELL = /bin/sh |
|
17 |
||
18 |
@SET_MAKE@
|
|
19 |
||
28
by Bastian Blank
* Force building with -j1. |
20 |
CC = @CC@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
21 |
RANLIB = @RANLIB@ |
22 |
INSTALL = @INSTALL@ |
|
12
by Bastian Blank
* New upstream version. |
23 |
INSTALL_DATA = @INSTALL@ -m 644 |
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
24 |
MKDIR_P = @MKDIR_P@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
25 |
MSGFMT = @MSGFMT@ |
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
26 |
LCOV = @LCOV@ |
27 |
GENHTML = @GENHTML@ |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
28 |
LN_S = @LN_S@ |
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
29 |
SED = @SED@ |
1.1.8
by Bastian Blank
Import upstream version 2.02.62 |
30 |
CFLOW_CMD = @CFLOW_CMD@ |
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
31 |
AWK = @AWK@ |
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
32 |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
33 |
LIBS = @LIBS@ |
1.1.8
by Bastian Blank
Import upstream version 2.02.62 |
34 |
# Extra libraries always linked with static binaries
|
35 |
STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
36 |
DEFS += @DEFS@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
37 |
CFLAGS += @CFLAGS@ |
38 |
CLDFLAGS += @CLDFLAGS@ |
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
39 |
ELDFLAGS += @ELDFLAGS@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
40 |
LDDEPS += @LDDEPS@ |
41 |
LDFLAGS += @LDFLAGS@ |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
42 |
LIB_SUFFIX = @LIB_SUFFIX@ |
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
43 |
LVMINTERNAL_LIBS = -llvm-internal $(DAEMON_LIBS) $(UDEV_LIBS) $(DL_LIBS) |
1.1.8
by Bastian Blank
Import upstream version 2.02.62 |
44 |
DL_LIBS = @DL_LIBS@ |
45 |
PTHREAD_LIBS = @PTHREAD_LIBS@ |
|
46 |
READLINE_LIBS = @READLINE_LIBS@ |
|
47 |
SELINUX_LIBS = @SELINUX_LIBS@ |
|
48 |
UDEV_LIBS = @UDEV_LIBS@ |
|
1.1.11
by Bastian Blank
Import upstream version 2.02.84 |
49 |
TESTING = @TESTING@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
50 |
|
51 |
# Setup directory variables
|
|
52 |
prefix = @prefix@ |
|
53 |
exec_prefix = @exec_prefix@ |
|
1.1.4
by Bastian Blank
Import upstream version 2.02.51 |
54 |
udev_prefix = @udev_prefix@ |
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
55 |
sysconfdir = @sysconfdir@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
56 |
bindir = $(DESTDIR)@bindir@ |
57 |
confdir = $(DESTDIR)@CONFDIR@/lvm |
|
58 |
includedir = $(DESTDIR)@includedir@ |
|
59 |
libdir = $(DESTDIR)@libdir@ |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
60 |
usrlibdir = $(DESTDIR)@usrlibdir@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
61 |
sbindir = $(DESTDIR)@sbindir@ |
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
62 |
usrsbindir = $(DESTDIR)@usrsbindir@ |
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
63 |
datarootdir = @datarootdir@ |
64 |
infodir = $(DESTDIR)@infodir@ |
|
65 |
mandir = $(DESTDIR)@mandir@ |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
66 |
localedir = $(DESTDIR)@LOCALEDIR@ |
67 |
staticdir = $(DESTDIR)@STATICDIR@ |
|
1.1.4
by Bastian Blank
Import upstream version 2.02.51 |
68 |
udevdir = $(DESTDIR)@udevdir@ |
1.1.10
by Bastian Blank
Import upstream version 2.02.66 |
69 |
pkgconfigdir = $(usrlibdir)/pkgconfig |
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
70 |
initdir = $(DESTDIR)$(sysconfdir)/rc.d/init.d |
71 |
systemd_dir = $(DESTDIR)@systemdsystemunitdir@ |
|
72 |
tmpfiles_dir = $(DESTDIR)@tmpfilesdir@ |
|
1.1.11
by Bastian Blank
Import upstream version 2.02.84 |
73 |
ocf_scriptdir = $(DESTDIR)@OCFDIR@ |
74 |
||
20
by Bastian Blank
* Fix development library symlinks. (closes: #614838) |
75 |
USRLIB_RELPATH = @libdir@/ |
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
76 |
|
1.1.10
by Bastian Blank
Import upstream version 2.02.66 |
77 |
DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@ |
78 |
DEFAULT_ARCHIVE_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_ARCHIVE_SUBDIR@ |
|
79 |
DEFAULT_BACKUP_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_BACKUP_SUBDIR@ |
|
80 |
DEFAULT_CACHE_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_CACHE_SUBDIR@ |
|
81 |
DEFAULT_LOCK_DIR = @DEFAULT_LOCK_DIR@ |
|
1.1.11
by Bastian Blank
Import upstream version 2.02.84 |
82 |
DEFAULT_RUN_DIR = @DEFAULT_RUN_DIR@ |
1.1.10
by Bastian Blank
Import upstream version 2.02.66 |
83 |
|
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
84 |
# Setup vpath search paths for some suffixes
|
85 |
vpath %.c $(srcdir)
|
|
86 |
vpath %.in $(srcdir)
|
|
87 |
vpath %.po $(srcdir)
|
|
88 |
vpath %.exported_symbols $(srcdir)
|
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
89 |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
90 |
interface = @interface@ |
1.1.8
by Bastian Blank
Import upstream version 2.02.62 |
91 |
interfacebuilddir = $(top_builddir)/libdm/$(interface) |
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
92 |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
93 |
# The number of jobs to run, if blank, defaults to the make standard
|
94 |
ifndef MAKEFLAGS
|
|
95 |
MAKEFLAGS = @JOBS@ |
|
96 |
endif
|
|
97 |
||
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
98 |
# Handle installation of files
|
13
by Bastian Blank
* New upstream version. |
99 |
INSTALL_PROGRAM = $(INSTALL) |
100 |
INSTALL_DATA = $(INSTALL) -m 644 |
|
101 |
INSTALL_WDATA = $(INSTALL_DATA) |
|
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
102 |
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
103 |
INSTALL_DIR = $(INSTALL) -m 755 -d |
104 |
INSTALL_ROOT_DIR = $(INSTALL) -m 700 -d |
|
105 |
INSTALL_ROOT_DATA = $(INSTALL) -m 600 |
|
14
by Bastian Blank
* New upstream version. |
106 |
INSTALL_SCRIPT = $(INSTALL_PROGRAM) |
1.1.10
by Bastian Blank
Import upstream version 2.02.66 |
107 |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
108 |
.SUFFIXES: .c .d .o .so .a .po .pot .mo .dylib |
109 |
||
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
110 |
WFLAGS += -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings \ |
111 |
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
|
|
112 |
-Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls \
|
|
113 |
-Wpointer-arith |
|
114 |
||
115 |
#WFLAGS += -W -Wconversion -Wbad-function-cast -Wcast-qual
|
|
116 |
#WFLAGS += -pedantic -std=gnu99
|
|
117 |
#DEFS += -DDEBUG_CRC32
|
|
118 |
||
119 |
CFLAGS += -fPIC @COPTIMISE_FLAG@ |
|
120 |
LDFLAGS += @COPTIMISE_FLAG@ |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
121 |
|
122 |
ifeq ("@DEBUG@", "yes")
|
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
123 |
CFLAGS += -g -fno-omit-frame-pointer |
124 |
DEFS += -DDEBUG |
|
1.1.8
by Bastian Blank
Import upstream version 2.02.62 |
125 |
# memory debugging is not thread-safe yet
|
126 |
ifneq ("@DMEVENTD@", "yes")
|
|
127 |
DEFS += -DDEBUG_MEM |
|
128 |
endif
|
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
129 |
endif
|
130 |
||
131 |
ifeq ("@INTL@", "yes")
|
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
132 |
DEFS += -DINTL_PACKAGE=\"@INTL_PACKAGE@\" -DLOCALEDIR=\"@LOCALEDIR@\" |
133 |
endif
|
|
134 |
||
1.1.7
by Bastian Blank
Import upstream version 2.02.54 |
135 |
LDFLAGS += -L$(top_builddir)/libdm -L$(top_builddir)/lib |
136 |
CLDFLAGS += -L$(top_builddir)/libdm -L$(top_builddir)/lib |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
137 |
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
138 |
ifeq ("@BUILD_LVMETAD@", "yes")
|
139 |
DAEMON_LIBS = -ldaemonclient |
|
140 |
LDFLAGS += -L$(top_builddir)/libdaemon/client |
|
141 |
CLDFLAGS += -L$(top_builddir)/libdaemon/client |
|
142 |
endif
|
|
143 |
||
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
144 |
ifeq ("@DMEVENTD@", "yes")
|
1.1.7
by Bastian Blank
Import upstream version 2.02.54 |
145 |
LDFLAGS += -L$(top_builddir)/daemons/dmeventd |
146 |
CLDFLAGS += -L$(top_builddir)/daemons/dmeventd |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
147 |
endif
|
148 |
||
149 |
ifeq ("@DM_COMPAT@", "yes")
|
|
150 |
DEFS += -DDM_COMPAT |
|
151 |
endif
|
|
152 |
||
153 |
ifeq ("@DM_IOCTLS@", "yes")
|
|
154 |
DEFS += -DDM_IOCTLS |
|
155 |
endif
|
|
156 |
||
1.1.13
by Bastian Blank
Import upstream version 2.02.88 |
157 |
# Combination of DEBUG_POOL and DEBUG_ENFORCE_POOL_LOCKING is not suppored.
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
158 |
#DEFS += -DDEBUG_POOL
|
1.1.13
by Bastian Blank
Import upstream version 2.02.88 |
159 |
# Default pool locking is using the crc checksum. With mprotect memory
|
160 |
# enforcing compilation faulty memory write could be easily found.
|
|
161 |
#DEFS += -DDEBUG_ENFORCE_POOL_LOCKING
|
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
162 |
#DEFS += -DBOUNDS_CHECK
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
163 |
|
164 |
#CFLAGS += -pg
|
|
165 |
#LDFLAGS += -pg
|
|
166 |
||
167 |
STRIP= |
|
168 |
#STRIP = -s
|
|
169 |
||
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
170 |
LVM_VERSION := $(shell cat $(top_srcdir)/VERSION) |
171 |
||
1.1.10
by Bastian Blank
Import upstream version 2.02.66 |
172 |
LIB_VERSION_LVM := $(shell $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}' $(top_srcdir)/VERSION) |
173 |
||
174 |
LIB_VERSION_DM := $(shell $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}' $(top_srcdir)/VERSION_DM) |
|
175 |
||
176 |
LIB_VERSION_APP := $(shell $(AWK) -F '[(). ]' '{printf "%s.%s",$$1,$$4}' $(top_srcdir)/VERSION) |
|
1.1.4
by Bastian Blank
Import upstream version 2.02.51 |
177 |
|
1.1.7
by Bastian Blank
Import upstream version 2.02.54 |
178 |
INCLUDES += -I. -I$(top_builddir)/include |
179 |
||
180 |
INC_LNS = $(top_builddir)/include/.symlinks_created |
|
181 |
||
182 |
DEPS = $(top_builddir)/make.tmpl $(top_srcdir)/VERSION \ |
|
183 |
$(top_builddir)/Makefile $(INC_LNS) |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
184 |
|
185 |
OBJECTS = $(SOURCES:%.c=%.o) |
|
186 |
POTFILES = $(SOURCES:%.c=%.pot) |
|
187 |
||
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
188 |
.PHONY: all pofile distclean clean cleandir cflow device-mapper |
189 |
.PHONY: install install_cluster install_device-mapper install_lvm2 |
|
1.1.10
by Bastian Blank
Import upstream version 2.02.66 |
190 |
.PHONY: install_lib_shared install_dm_plugin install_lvm2_plugin |
1.1.11
by Bastian Blank
Import upstream version 2.02.84 |
191 |
.PHONY: install_ocf |
28
by Bastian Blank
* Force building with -j1. |
192 |
.PHONY: $(SUBDIRS) $(SUBDIRS.install) $(SUBDIRS.clean) $(SUBDIRS.distclean) |
193 |
.PHONY: $(SUBDIRS.pofile) $(SUBDIRS.install_cluster) $(SUBDIRS.cflow) |
|
194 |
.PHONY: $(SUBDIRS.device-mapper) $(SUBDIRS.install-device-mapper) |
|
195 |
||
196 |
SUBDIRS.device-mapper := $(SUBDIRS:=.device-mapper) |
|
197 |
SUBDIRS.install := $(SUBDIRS:=.install) |
|
198 |
SUBDIRS.install_cluster := $(SUBDIRS:=.install_cluster) |
|
199 |
SUBDIRS.install_device-mapper := $(SUBDIRS:=.install_device-mapper) |
|
200 |
SUBDIRS.install_lvm2 := $(SUBDIRS:=.install_lvm2) |
|
201 |
SUBDIRS.install_ocf := $(SUBDIRS:=.install_ocf) |
|
202 |
SUBDIRS.pofile := $(SUBDIRS:=.pofile) |
|
203 |
SUBDIRS.cflow := $(SUBDIRS:=.cflow) |
|
204 |
SUBDIRS.clean := $(SUBDIRS:=.clean) |
|
205 |
SUBDIRS.distclean := $(SUBDIRS:=.distclean) |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
206 |
|
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
207 |
TARGETS += $(LIB_SHARED) $(LIB_STATIC) |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
208 |
|
28
by Bastian Blank
* Force building with -j1. |
209 |
all: $(SUBDIRS) $(TARGETS) |
210 |
||
211 |
install: all $(SUBDIRS.install) |
|
212 |
install_cluster: all $(SUBDIRS.install_cluster) |
|
213 |
install_device-mapper: $(SUBDIRS.install_device-mapper) |
|
214 |
install_lvm2: $(SUBDIRS.install_lvm2) |
|
215 |
install_ocf: $(SUBDIRS.install_ocf) |
|
216 |
cflow: $(SUBDIRS.cflow) |
|
217 |
||
218 |
$(SUBDIRS): $(SUBDIRS.device-mapper) |
|
219 |
$(MAKE) -C $@ |
|
220 |
||
221 |
$(SUBDIRS.device-mapper): |
|
222 |
$(MAKE) -C $(@:.device-mapper=) device-mapper |
|
223 |
||
224 |
$(SUBDIRS.install): $(SUBDIRS) |
|
225 |
$(MAKE) -C $(@:.install=) install |
|
226 |
||
227 |
$(SUBDIRS.install_cluster): $(SUBDIRS) |
|
228 |
$(MAKE) -C $(@:.install_cluster=) install_cluster |
|
229 |
||
230 |
$(SUBDIRS.install_device-mapper): device-mapper |
|
231 |
$(MAKE) -C $(@:.install_device-mapper=) install_device-mapper |
|
232 |
||
233 |
$(SUBDIRS.install_lvm2): $(SUBDIRS) |
|
234 |
$(MAKE) -C $(@:.install_lvm2=) install_lvm2 |
|
235 |
||
236 |
$(SUBDIRS.install_ocf): |
|
237 |
$(MAKE) -C $(@:.install_ocf=) install_ocf |
|
238 |
||
239 |
$(SUBDIRS.clean): |
|
240 |
-$(MAKE) -C $(@:.clean=) clean |
|
241 |
||
242 |
$(SUBDIRS.distclean): |
|
243 |
-$(MAKE) -C $(@:.distclean=) distclean |
|
244 |
||
245 |
$(SUBDIRS.cflow): |
|
246 |
$(MAKE) -C $(@:.cflow=) cflow |
|
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
247 |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
248 |
ifeq ("@INTL@", "yes")
|
28
by Bastian Blank
* Force building with -j1. |
249 |
pofile: $(SUBDIRS.pofile) $(POTFILES) |
250 |
||
251 |
$(SUBDIRS.pofile): |
|
252 |
$(MAKE) -C $(@:.pofile=) pofile |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
253 |
endif
|
254 |
||
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
255 |
ifneq ("$(CFLOW_LIST_TARGET)", "")
|
256 |
CLEAN_CFLOW += $(CFLOW_LIST_TARGET) |
|
257 |
$(CFLOW_LIST_TARGET): $(CFLOW_LIST) |
|
258 |
echo "CFLOW_SOURCES += $(addprefix \ |
|
259 |
\$$(top_srcdir)$(subst $(top_srcdir),,$(srcdir))/, $(CFLOW_LIST))" > $@ |
|
260 |
cflow: $(CFLOW_LIST_TARGET) |
|
261 |
endif
|
|
262 |
||
263 |
ifneq ("$(CFLOW_TARGET)", "")
|
|
264 |
CLEAN_CFLOW += \ |
|
265 |
$(CFLOW_TARGET).cflow \ |
|
266 |
$(CFLOW_TARGET).xref \ |
|
267 |
$(CFLOW_TARGET).tree \ |
|
268 |
$(CFLOW_TARGET).rtree \ |
|
269 |
$(CFLOW_TARGET).rxref |
|
270 |
||
271 |
ifneq ("$(CFLOW_CMD)", "")
|
|
272 |
CFLOW_FLAGS +=\ |
|
273 |
--cpp="$(CC) -E" \ |
|
274 |
--symbol _ISbit:wrapper \
|
|
275 |
--symbol __attribute__:wrapper \
|
|
276 |
--symbol __const__:wrapper \
|
|
277 |
--symbol __const:type \
|
|
278 |
--symbol __restrict:type \
|
|
279 |
--symbol __extension__:wrapper \
|
|
280 |
--symbol __nonnull:wrapper \
|
|
281 |
--symbol __nothrow__:wrapper \
|
|
282 |
--symbol __pure__:wrapper \
|
|
283 |
--symbol __REDIRECT:wrapper \
|
|
284 |
--symbol __REDIRECT_NTH:wrapper \
|
|
285 |
--symbol __wur:wrapper \
|
|
286 |
-I$(top_srcdir)/libdm \ |
|
287 |
-I$(top_srcdir)/libdm/ioctl \ |
|
288 |
-I$(top_srcdir)/daemons/dmeventd/plugins/lvm2/ \ |
|
289 |
$(INCLUDES) $(DEFS) |
|
290 |
||
291 |
$(CFLOW_TARGET).cflow: $(CFLOW_SOURCES) |
|
292 |
$(CFLOW_CMD) -o$@ $(CFLOW_FLAGS) $(CFLOW_SOURCES) |
|
293 |
$(CFLOW_TARGET).rxref: $(CFLOW_SOURCES) |
|
294 |
$(CFLOW_CMD) -o$@ $(CFLOW_FLAGS) -r --omit-arguments $(CFLOW_SOURCES) |
|
295 |
$(CFLOW_TARGET).tree: $(CFLOW_SOURCES) |
|
296 |
$(CFLOW_CMD) -o$@ $(CFLOW_FLAGS) --omit-arguments -T -b $(CFLOW_SOURCES) |
|
297 |
$(CFLOW_TARGET).xref: $(CFLOW_SOURCES) |
|
298 |
$(CFLOW_CMD) -o$@ $(CFLOW_FLAGS) --omit-arguments -x $(CFLOW_SOURCES) |
|
299 |
#$(CFLOW_TARGET).rtree: $(CFLOW_SOURCES)
|
|
300 |
# $(CFLOW_CMD) -o$@ $(CFLOW_FLAGS) -r --omit-arguments -T -b $(CFLOW_SOURCES)
|
|
301 |
cflow: $(CFLOW_TARGET).cflow $(CFLOW_TARGET).tree $(CFLOW_TARGET).rxref $(CFLOW_TARGET).xref |
|
302 |
#$(CFLOW_TARGET).rtree
|
|
303 |
endif
|
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
304 |
endif
|
305 |
||
1
by Patrick Caulfield
Import upstream version 2.00.25 |
306 |
$(TARGETS): $(OBJECTS) |
307 |
||
308 |
%.o: %.c |
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
309 |
$(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CFLAGS) $< -o $@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
310 |
|
311 |
%.pot: %.c Makefile |
|
312 |
$(CC) -E $(INCLUDES) -include $(top_srcdir)/include/pogen.h \ |
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
313 |
$(DEFS) $(WFLAGS) $(CFLAGS) $< > $@ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
314 |
|
315 |
%.so: %.o |
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
316 |
$(CC) -c $(CFLAGS) $(CLDFLAGS) $< $(LIBS) -o $@ |
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
317 |
|
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
318 |
ifneq (,$(LIB_SHARED))
|
319 |
||
320 |
TARGETS += $(LIB_SHARED).$(LIB_VERSION) |
|
321 |
$(LIB_SHARED).$(LIB_VERSION): $(OBJECTS) $(LDDEPS) |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
322 |
ifeq ("@LIB_SUFFIX@","so")
|
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
323 |
$(CC) -shared -Wl,-soname,$(notdir $@) \ |
324 |
$(CFLAGS) $(CLDFLAGS) $(OBJECTS) $(LIBS) -o $@ |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
325 |
endif
|
326 |
ifeq ("@LIB_SUFFIX@","dylib")
|
|
327 |
$(CC) -dynamiclib -dylib_current_version,$(LIB_VERSION) \ |
|
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
328 |
$(CFLAGS) $(CLDFLAGS) $(OBJECTS) $(LIBS) -o $@ |
329 |
endif
|
|
330 |
||
331 |
$(LIB_SHARED): $(LIB_SHARED).$(LIB_VERSION) |
|
332 |
$(LN_S) -f $(<F) $@ |
|
333 |
||
334 |
install_lib_shared: $(LIB_SHARED) |
|
335 |
$(INSTALL_PROGRAM) -D $< $(libdir)/$(<F).$(LIB_VERSION) |
|
1.1.11
by Bastian Blank
Import upstream version 2.02.84 |
336 |
$(INSTALL_DIR) $(usrlibdir) |
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
337 |
$(LN_S) -f $(USRLIB_RELPATH)$(<F).$(LIB_VERSION) $(usrlibdir)/$(<F) |
338 |
||
28
by Bastian Blank
* Force building with -j1. |
339 |
install_dm_lib: $(LIB_SHARED) |
340 |
$(INSTALL_PROGRAM) -D $< $(libdir)/device-mapper/$(<F).$(LIB_VERSION) |
|
341 |
||
1.1.10
by Bastian Blank
Import upstream version 2.02.66 |
342 |
install_dm_plugin: $(LIB_SHARED) |
343 |
$(INSTALL_PROGRAM) -D $< $(libdir)/device-mapper/$(<F) |
|
344 |
||
345 |
install_lvm2_plugin: $(LIB_SHARED) |
|
346 |
$(INSTALL_PROGRAM) -D $< $(libdir)/lvm2/$(<F) |
|
1.1.3
by Bastian Blank
Import upstream version 2.02.44 |
347 |
endif
|
348 |
||
1
by Patrick Caulfield
Import upstream version 2.00.25 |
349 |
$(LIB_STATIC): $(OBJECTS) |
350 |
$(RM) $@ |
|
351 |
$(AR) rs $@ $(OBJECTS) |
|
352 |
||
353 |
%.d: %.c |
|
1.1.7
by Bastian Blank
Import upstream version 2.02.54 |
354 |
$(MKDIR_P) $(dir $@); \ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
355 |
set -e; \ |
356 |
FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \ |
|
357 |
DEPS=`echo $(DEPS) | sed -e 's/\\//\\\\\\//g'`; \ |
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
358 |
$(CC) -MM $(INCLUDES) $(DEFS) -o $@ $<; \ |
1.1.7
by Bastian Blank
Import upstream version 2.02.54 |
359 |
sed -i "s/\(.*\)\.o[ :]*/$$FILE.o $$FILE.d $$FILE.pot: $$DEPS /g" $@; \ |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
360 |
[ -s $@ ] || $(RM) $@ |
361 |
||
362 |
%.mo: %.po |
|
363 |
$(MSGFMT) -o $@ $< |
|
364 |
||
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
365 |
cleandir: |
366 |
$(RM) $(OBJECTS) $(TARGETS) $(CLEAN_TARGETS) $(CLEAN_CFLOW) $(LDDEPS) \ |
|
367 |
$(POTFILES) $(SOURCES:%.c=%.d) $(SOURCES:%.c=%.gcno) $(SOURCES:%.c=%.gcda) \ |
|
1.1.13
by Bastian Blank
Import upstream version 2.02.88 |
368 |
$(SOURCES2:%.c=%.o) $(SOURCES2:%.c=%.d) $(SOURCES2:%.c=%.gcno) $(SOURCES2:%.c=%.gcda) \ |
369 |
.exported_symbols_generated core |
|
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
370 |
|
28
by Bastian Blank
* Force building with -j1. |
371 |
clean: $(SUBDIRS.clean) cleandir |
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
372 |
|
28
by Bastian Blank
* Force building with -j1. |
373 |
distclean: cleandir $(SUBDIRS.distclean) |
1.1.9
by Bastian Blank
Import upstream version 2.02.64 |
374 |
test -z "$(DISTCLEAN_DIRS)" || $(RM) -r $(DISTCLEAN_DIRS) |
1.1.13
by Bastian Blank
Import upstream version 2.02.88 |
375 |
$(RM) $(DISTCLEAN_TARGETS) Makefile |
1
by Patrick Caulfield
Import upstream version 2.00.25 |
376 |
|
1.1.11
by Bastian Blank
Import upstream version 2.02.84 |
377 |
.exported_symbols_generated: $(EXPORTED_HEADER) .exported_symbols |
378 |
set -e; \ |
|
379 |
( cat $(srcdir)/.exported_symbols; \ |
|
380 |
if test x$(EXPORTED_HEADER) != x; then \
|
|
1.1.14
by Bastian Blank
Import upstream version 2.02.95 |
381 |
$(CC) -E -P $(INCLUDES) $(DEFS) $(EXPORTED_HEADER) | \
|
382 |
$(SED) -ne "/^typedef|}/!s/.*[ \*]\(\$(EXPORTED_FN_PREFIX)_[a-z0-9_]*\)(.*/\1/p"; \
|
|
1.1.11
by Bastian Blank
Import upstream version 2.02.84 |
383 |
fi \
|
384 |
) > $@
|
|
385 |
||
386 |
.export.sym: .exported_symbols_generated |
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
387 |
set -e; (echo "Base {"; echo " global:"; \ |
388 |
sed "s/^/ /;s/$$/;/" < $<; \ |
|
389 |
echo " local:"; echo " *;"; echo "};") > $@ |
|
390 |
||
1.1.10
by Bastian Blank
Import upstream version 2.02.66 |
391 |
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov))
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
392 |
ifdef SOURCES
|
393 |
-include $(SOURCES:.c=.d)
|
|
394 |
endif
|
|
1.1.5
by Bastian Blank
Import upstream version 2.02.52 |
395 |
ifdef SOURCES2
|
396 |
-include $(SOURCES2:.c=.d)
|
|
397 |
endif
|
|
1
by Patrick Caulfield
Import upstream version 2.00.25 |
398 |
endif
|