]>
Commit | Line | Data |
---|---|---|
ba7bd8c8 CB |
1 | pkginclude_HEADERS = attach_options.h \ |
2 | lxccontainer.h \ | |
3 | version.h | |
4 | ||
aafa5f96 CB |
5 | noinst_HEADERS = api_extensions.h \ |
6 | attach.h \ | |
ba7bd8c8 CB |
7 | caps.h \ |
8 | cgroups/cgroup.h \ | |
9 | cgroups/cgroup_utils.h \ | |
d7f19646 | 10 | compiler.h \ |
ba7bd8c8 CB |
11 | conf.h \ |
12 | confile.h \ | |
13 | confile_utils.h \ | |
14 | criu.h \ | |
15 | error.h \ | |
37ef15bb | 16 | file_utils.h \ |
cc6119a0 | 17 | ../include/netns_ifaddrs.h \ |
ba7bd8c8 CB |
18 | initutils.h \ |
19 | list.h \ | |
20 | log.h \ | |
21 | lxc.h \ | |
22 | lxclock.h \ | |
279c45ee | 23 | macro.h \ |
ba7bd8c8 CB |
24 | monitor.h \ |
25 | namespace.h \ | |
13be2733 | 26 | raw_syscalls.h \ |
ba7bd8c8 CB |
27 | start.h \ |
28 | state.h \ | |
29 | storage/btrfs.h \ | |
30 | storage/dir.h \ | |
31 | storage/loop.h \ | |
32 | storage/lvm.h \ | |
33 | storage/nbd.h \ | |
34 | storage/overlay.h \ | |
35 | storage/rbd.h \ | |
36 | storage/rsync.h \ | |
37 | storage/storage.h \ | |
38 | storage/storage_utils.h \ | |
39 | storage/zfs.h \ | |
37ef15bb | 40 | string_utils.h \ |
b25291da | 41 | syscall_wrappers.h \ |
ba7bd8c8 CB |
42 | terminal.h \ |
43 | ../tests/lxctest.h \ | |
44 | tools/arguments.h \ | |
45 | utils.h | |
61ba7fe6 | 46 | |
e827ff7e | 47 | if IS_BIONIC |
9978b4d3 | 48 | noinst_HEADERS += ../include/lxcmntent.h \ |
ba7bd8c8 | 49 | ../include/openpty.h |
f48b5fd8 FF |
50 | endif |
51 | ||
a04f5407 | 52 | if !HAVE_PRLIMIT |
f48b5fd8 | 53 | if HAVE_PRLIMIT64 |
a04f5407 CB |
54 | noinst_HEADERS += ../include/prlimit.h |
55 | endif | |
e827ff7e SG |
56 | endif |
57 | ||
1ba0013f SG |
58 | if !HAVE_GETLINE |
59 | if HAVE_FGETLN | |
2b25068a | 60 | noinst_HEADERS += ../include/getline.h |
1ba0013f SG |
61 | endif |
62 | endif | |
63 | ||
9dbcd668 | 64 | if !HAVE_GETSUBOPT |
c6668710 | 65 | noinst_HEADERS += tools/include/getsubopt.h |
9dbcd668 SG |
66 | endif |
67 | ||
477e62b6 CB |
68 | if !HAVE_GETGRGID_R |
69 | noinst_HEADERS += ../include/getgrgid_r.h | |
70 | endif | |
71 | ||
5b46e19c | 72 | sodir=$(libdir) |
0ad19a3f | 73 | |
ba7bd8c8 CB |
74 | LSM_SOURCES = lsm/lsm.c \ |
75 | lsm/lsm.h \ | |
76 | lsm/nop.c | |
fe4de9a6 DE |
77 | |
78 | if ENABLE_APPARMOR | |
79 | LSM_SOURCES += lsm/apparmor.c | |
80 | endif | |
81 | ||
82 | if ENABLE_SELINUX | |
83 | LSM_SOURCES += lsm/selinux.c | |
84 | endif | |
85 | ||
26419a7a | 86 | lib_LTLIBRARIES = liblxc.la |
ba7bd8c8 | 87 | liblxc_la_SOURCES = af_unix.c af_unix.h \ |
aafa5f96 | 88 | api_extensions.h \ |
ba7bd8c8 CB |
89 | attach.c attach.h \ |
90 | caps.c caps.h \ | |
91 | cgroups/cgfsng.c \ | |
92 | cgroups/cgroup.c cgroups/cgroup.h \ | |
93 | cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ | |
d7f19646 | 94 | compiler.h \ |
ba7bd8c8 CB |
95 | commands.c commands.h \ |
96 | commands_utils.c commands_utils.h \ | |
97 | conf.c conf.h \ | |
98 | confile.c confile.h \ | |
99 | confile_utils.c confile_utils.h \ | |
100 | criu.c criu.h \ | |
101 | error.c error.h \ | |
102 | execute.c \ | |
103 | freezer.c \ | |
37ef15bb | 104 | file_utils.c file_utils.h \ |
cc6119a0 | 105 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
ba7bd8c8 CB |
106 | initutils.c initutils.h \ |
107 | list.h \ | |
108 | log.c log.h \ | |
109 | lxc.h \ | |
110 | lxccontainer.c lxccontainer.h \ | |
111 | lxclock.c lxclock.h \ | |
112 | lxcseccomp.h \ | |
279c45ee | 113 | macro.h \ |
ba7bd8c8 CB |
114 | mainloop.c mainloop.h \ |
115 | namespace.c namespace.h \ | |
116 | nl.c nl.h \ | |
117 | network.c network.h \ | |
118 | monitor.c monitor.h \ | |
119 | parse.c parse.h \ | |
13be2733 | 120 | raw_syscalls.c raw_syscalls.h \ |
ba7bd8c8 CB |
121 | ringbuf.c ringbuf.h \ |
122 | rtnl.c rtnl.h \ | |
123 | state.c state.h \ | |
124 | start.c start.h \ | |
125 | storage/btrfs.c storage/btrfs.h \ | |
126 | storage/dir.c storage/dir.h \ | |
127 | storage/loop.c storage/loop.h \ | |
128 | storage/lvm.c storage/lvm.h \ | |
129 | storage/nbd.c storage/nbd.h \ | |
130 | storage/overlay.c storage/overlay.h \ | |
131 | storage/rbd.c storage/rbd.h \ | |
132 | storage/rsync.c storage/rsync.h \ | |
133 | storage/storage.c storage/storage.h \ | |
134 | storage/storage_utils.c storage/storage_utils.h \ | |
135 | storage/zfs.c storage/zfs.h \ | |
37ef15bb | 136 | string_utils.c string_utils.h \ |
ba7bd8c8 | 137 | sync.c sync.h \ |
b25291da | 138 | syscall_wrappers.h \ |
ba7bd8c8 CB |
139 | terminal.c \ |
140 | utils.c utils.h \ | |
141 | version.h \ | |
142 | $(LSM_SOURCES) | |
0ad19a3f | 143 | |
e827ff7e | 144 | if IS_BIONIC |
d029e1de | 145 | liblxc_la_SOURCES += ../include/lxcmntent.c ../include/lxcmntent.h \ |
ba7bd8c8 CB |
146 | ../include/openpty.c ../include/openpty.h |
147 | endif | |
148 | ||
149 | if !HAVE_GETGRGID_R | |
150 | liblxc_la_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
f48b5fd8 FF |
151 | endif |
152 | ||
57d533fb CB |
153 | if !HAVE_GETLINE |
154 | if HAVE_FGETLN | |
155 | liblxc_la_SOURCES += ../include/getline.c ../include/getline.h | |
156 | endif | |
157 | endif | |
158 | ||
a04f5407 | 159 | if !HAVE_PRLIMIT |
f48b5fd8 | 160 | if HAVE_PRLIMIT64 |
a04f5407 CB |
161 | liblxc_la_SOURCES += ../include/prlimit.c ../include/prlimit.h |
162 | endif | |
e827ff7e SG |
163 | endif |
164 | ||
57d533fb CB |
165 | if ENABLE_SECCOMP |
166 | liblxc_la_SOURCES += seccomp.c | |
1ba0013f SG |
167 | endif |
168 | ||
91c272a5 CB |
169 | if !HAVE_STRLCPY |
170 | liblxc_la_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
171 | endif | |
172 | ||
3afafe55 CB |
173 | if !HAVE_STRLCAT |
174 | liblxc_la_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
175 | endif | |
176 | ||
ba7bd8c8 CB |
177 | AM_CFLAGS = -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \ |
178 | -DLXCPATH=\"$(LXCPATH)\" \ | |
179 | -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \ | |
180 | -DLXCINITDIR=\"$(LXCINITDIR)\" \ | |
181 | -DLIBEXECDIR=\"$(LIBEXECDIR)\" \ | |
182 | -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \ | |
183 | -DLXCTEMPLATECONFIG=\"$(LXCTEMPLATECONFIG)\" \ | |
184 | -DLOGPATH=\"$(LOGPATH)\" \ | |
185 | -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \ | |
186 | -DLXC_USERNIC_DB=\"$(LXC_USERNIC_DB)\" \ | |
187 | -DLXC_USERNIC_CONF=\"$(LXC_USERNIC_CONF)\" \ | |
188 | -DDEFAULT_CGROUP_PATTERN=\"$(DEFAULT_CGROUP_PATTERN)\" \ | |
189 | -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \ | |
190 | -DSBINDIR=\"$(SBINDIR)\" \ | |
1800f924 | 191 | -DAPPARMOR_CACHE_DIR=\"$(APPARMOR_CACHE_DIR)\" \ |
ba7bd8c8 CB |
192 | -I $(top_srcdir)/src \ |
193 | -I $(top_srcdir)/src/lxc \ | |
194 | -I $(top_srcdir)/src/lxc/storage \ | |
195 | -I $(top_srcdir)/src/lxc/cgroups | |
b9f94fc1 | 196 | |
e075f5d9 SH |
197 | if ENABLE_APPARMOR |
198 | AM_CFLAGS += -DHAVE_APPARMOR | |
199 | endif | |
200 | ||
49bc916b FF |
201 | if ENABLE_GNUTLS |
202 | AM_CFLAGS += -DHAVE_LIBGNUTLS | |
203 | endif | |
204 | ||
57d533fb | 205 | if ENABLE_SECCOMP |
ba7bd8c8 CB |
206 | AM_CFLAGS += -DHAVE_SECCOMP \ |
207 | $(SECCOMP_CFLAGS) | |
57d533fb CB |
208 | endif |
209 | ||
fe4de9a6 DE |
210 | if ENABLE_SELINUX |
211 | AM_CFLAGS += -DHAVE_SELINUX | |
212 | endif | |
213 | ||
5c7bfc02 | 214 | if ENABLE_DLOG |
a8eed52c | 215 | AM_CFLAGS += -DHAVE_DLOG \ |
216 | $(DLOG_CFLAGS) | |
5c7bfc02 | 217 | endif |
218 | ||
5e1e7aaf SH |
219 | if USE_CONFIGPATH_LOGS |
220 | AM_CFLAGS += -DUSE_CONFIGPATH_LOGS | |
221 | endif | |
222 | ||
57d533fb CB |
223 | # build the shared library |
224 | liblxc_la_CFLAGS = -fPIC \ | |
225 | -DPIC \ | |
226 | $(AM_CFLAGS) \ | |
227 | -pthread | |
5b46e19c | 228 | |
57d533fb | 229 | liblxc_la_LDFLAGS = -pthread \ |
9089937b | 230 | -Wl,-no-undefined \ |
57d533fb CB |
231 | -Wl,-soname,liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) \ |
232 | -version-info @LXC_ABI_MAJOR@ | |
5b46e19c | 233 | |
57d533fb CB |
234 | liblxc_la_LIBADD = $(CAP_LIBS) \ |
235 | $(GNUTLS_LIBS) \ | |
236 | $(SELINUX_LIBS) \ | |
a8eed52c | 237 | $(SECCOMP_LIBS) \ |
238 | $(DLOG_LIBS) | |
20d2e91b | 239 | |
8d060937 | 240 | bin_SCRIPTS= |
5e97c3fc | 241 | |
8d060937 CB |
242 | if ENABLE_COMMANDS |
243 | bin_SCRIPTS += cmd/lxc-checkconfig \ | |
244 | cmd/lxc-update-config | |
245 | endif | |
246 | ||
8d060937 | 247 | if ENABLE_TOOLS |
ba7bd8c8 CB |
248 | bin_PROGRAMS = lxc-attach \ |
249 | lxc-autostart \ | |
250 | lxc-cgroup \ | |
251 | lxc-checkpoint \ | |
252 | lxc-copy \ | |
253 | lxc-config \ | |
254 | lxc-console \ | |
255 | lxc-create \ | |
256 | lxc-destroy \ | |
257 | lxc-device \ | |
258 | lxc-execute \ | |
259 | lxc-freeze \ | |
260 | lxc-info \ | |
261 | lxc-ls \ | |
262 | lxc-monitor \ | |
263 | lxc-snapshot \ | |
264 | lxc-start \ | |
265 | lxc-stop \ | |
266 | lxc-top \ | |
267 | lxc-unfreeze \ | |
268 | lxc-unshare \ | |
269 | lxc-usernsexec \ | |
270 | lxc-wait | |
8d060937 | 271 | endif |
d0a6bd39 | 272 | |
8d060937 | 273 | if ENABLE_COMMANDS |
e78884c9 | 274 | sbin_PROGRAMS = init.lxc |
ba7bd8c8 CB |
275 | |
276 | pkglibexec_PROGRAMS = lxc-monitord \ | |
277 | lxc-user-nic | |
8d060937 | 278 | endif |
a25ba7aa | 279 | |
1c41ddcb | 280 | AM_LDFLAGS = -Wl,-E |
ba7bd8c8 | 281 | |
1c41ddcb GK |
282 | if ENABLE_RPATH |
283 | AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir) | |
284 | endif | |
ba7bd8c8 CB |
285 | |
286 | LDADD = liblxc.la \ | |
287 | @CAP_LIBS@ \ | |
288 | @GNUTLS_LIBS@ \ | |
289 | @SECCOMP_LIBS@ \ | |
a8eed52c | 290 | @SELINUX_LIBS@ \ |
291 | @DLOG_LIBS@ | |
20d2e91b | 292 | |
8d060937 | 293 | if ENABLE_TOOLS |
ba7bd8c8 CB |
294 | lxc_attach_SOURCES = tools/lxc_attach.c \ |
295 | tools/arguments.c tools/arguments.h | |
296 | lxc_autostart_SOURCES = tools/lxc_autostart.c \ | |
297 | tools/arguments.c tools/arguments.h | |
298 | lxc_cgroup_SOURCES = tools/lxc_cgroup.c \ | |
299 | tools/arguments.c tools/arguments.h | |
300 | lxc_config_SOURCES = tools/lxc_config.c \ | |
301 | tools/arguments.c tools/arguments.h | |
302 | lxc_console_SOURCES = tools/lxc_console.c \ | |
303 | tools/arguments.c tools/arguments.h | |
304 | lxc_destroy_SOURCES = tools/lxc_destroy.c \ | |
305 | tools/arguments.c tools/arguments.h | |
306 | lxc_device_SOURCES = tools/lxc_device.c \ | |
307 | tools/arguments.c tools/arguments.h | |
308 | lxc_execute_SOURCES = tools/lxc_execute.c \ | |
309 | tools/arguments.c tools/arguments.h | |
310 | lxc_freeze_SOURCES = tools/lxc_freeze.c \ | |
311 | tools/arguments.c tools/arguments.h | |
312 | lxc_info_SOURCES = tools/lxc_info.c \ | |
313 | tools/arguments.c tools/arguments.h | |
314 | lxc_monitor_SOURCES = tools/lxc_monitor.c \ | |
9d6ade4a | 315 | macro.h \ |
ba7bd8c8 CB |
316 | tools/arguments.c tools/arguments.h |
317 | lxc_ls_SOURCES = tools/lxc_ls.c \ | |
318 | tools/arguments.c tools/arguments.h | |
319 | lxc_copy_SOURCES = tools/lxc_copy.c \ | |
320 | tools/arguments.c tools/arguments.h | |
321 | lxc_start_SOURCES = tools/lxc_start.c \ | |
322 | tools/arguments.c tools/arguments.h | |
323 | lxc_stop_SOURCES = tools/lxc_stop.c \ | |
324 | tools/arguments.c tools/arguments.h | |
325 | lxc_top_SOURCES = tools/lxc_top.c \ | |
326 | tools/arguments.c tools/arguments.h | |
327 | lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \ | |
328 | tools/arguments.c tools/arguments.h | |
329 | lxc_unshare_SOURCES = tools/lxc_unshare.c \ | |
330 | tools/arguments.c tools/arguments.h | |
331 | lxc_wait_SOURCES = tools/lxc_wait.c \ | |
332 | tools/arguments.c tools/arguments.h | |
333 | lxc_create_SOURCES = tools/lxc_create.c \ | |
334 | tools/arguments.c tools/arguments.h | |
335 | lxc_snapshot_SOURCES = tools/lxc_snapshot.c \ | |
336 | tools/arguments.c tools/arguments.h | |
337 | lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \ | |
338 | tools/arguments.c tools/arguments.h | |
8d060937 | 339 | endif |
5b46e19c | 340 | |
8d060937 | 341 | if ENABLE_COMMANDS |
844d9eac | 342 | # Binaries shipping with liblxc |
37ef15bb | 343 | init_lxc_SOURCES = cmd/lxc_init.c \ |
2fe8b2a0 CB |
344 | compiler.h \ |
345 | error.h \ | |
f4274ae8 | 346 | initutils.c initutils.h \ |
2fe8b2a0 CB |
347 | log.c log.h \ |
348 | parse.c parse.h \ | |
d7b58715 | 349 | raw_syscalls.c raw_syscalls.h \ |
37ef15bb | 350 | string_utils.c string_utils.h |
d7b58715 | 351 | lxc_monitord_SOURCES = cmd/lxc_monitord.c \ |
253c403d CB |
352 | af_unix.c af_unix.h \ |
353 | log.c log.h \ | |
354 | mainloop.c mainloop.h \ | |
355 | monitor.c monitor.h \ | |
356 | raw_syscalls.c raw_syscalls.h \ | |
357 | utils.c utils.h | |
ba7bd8c8 | 358 | lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \ |
61204b93 | 359 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
3725a69c | 360 | log.c log.h \ |
ba7bd8c8 | 361 | network.c network.h \ |
47d720d1 | 362 | parse.c parse.h \ |
59524108 CB |
363 | raw_syscalls.c raw_syscalls.h \ |
364 | syscall_wrappers.h | |
02af8066 CB |
365 | lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \ |
366 | conf.c conf.h \ | |
367 | list.h \ | |
368 | log.c log.h \ | |
c881c810 | 369 | macro.h \ |
37ef15bb CB |
370 | file_utils.c file_utils.h \ |
371 | string_utils.c string_utils.h \ | |
02af8066 | 372 | utils.c utils.h |
8d060937 CB |
373 | endif |
374 | ||
844d9eac | 375 | |
8d060937 | 376 | if ENABLE_TOOLS |
9dbcd668 | 377 | if !HAVE_GETSUBOPT |
c6668710 | 378 | lxc_copy_SOURCES += tools/include/getsubopt.c tools/include/getsubopt.h |
9dbcd668 | 379 | endif |
8d060937 | 380 | endif |
9dbcd668 | 381 | |
8d060937 | 382 | if ENABLE_COMMANDS |
e78884c9 DE |
383 | if HAVE_STATIC_LIBCAP |
384 | sbin_PROGRAMS += init.lxc.static | |
385 | ||
ba7bd8c8 CB |
386 | init_lxc_static_SOURCES = cmd/lxc_init.c \ |
387 | caps.c caps.h \ | |
388 | error.c error.h \ | |
389 | initutils.c initutils.h \ | |
37ef15bb | 390 | file_utils.c file_utils.h \ |
ba7bd8c8 | 391 | log.c log.h \ |
279c45ee | 392 | macro.h \ |
ba7bd8c8 | 393 | namespace.c namespace.h \ |
37ef15bb | 394 | string_utils.c string_utils.h |
77ae87cd SH |
395 | |
396 | if !HAVE_GETLINE | |
397 | if HAVE_FGETLN | |
ba7bd8c8 | 398 | init_lxc_static_SOURCES += ../include/getline.c ../include/getline.h |
77ae87cd SH |
399 | endif |
400 | endif | |
401 | ||
91c272a5 CB |
402 | if !HAVE_STRLCPY |
403 | init_lxc_static_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
404 | endif | |
405 | ||
3afafe55 CB |
406 | if !HAVE_STRLCAT |
407 | init_lxc_static_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
408 | endif | |
409 | ||
d04813f9 | 410 | init_lxc_static_LDFLAGS = -all-static |
2d4b3e3d | 411 | init_lxc_static_LDADD = @CAP_LIBS@ |
858377e4 | 412 | init_lxc_static_CFLAGS = $(AM_CFLAGS) -DNO_LXC_CONF |
e78884c9 | 413 | endif |
8d060937 | 414 | endif |
2d4b3e3d | 415 | |
f7a8609f | 416 | if ENABLE_PAM |
7ac43d3d CB |
417 | if HAVE_PAM |
418 | pam_LTLIBRARIES = pam_cgfs.la | |
71174d46 | 419 | |
ba7bd8c8 | 420 | pam_cgfs_la_SOURCES = pam/pam_cgfs.c \ |
f4274ae8 | 421 | caps.c caps.h \ |
71174d46 | 422 | file_utils.c file_utils.h \ |
f4274ae8 CB |
423 | log.c log.h \ |
424 | macro.h \ | |
71174d46 CB |
425 | string_utils.c string_utils.h |
426 | ||
427 | if !HAVE_STRLCAT | |
428 | pam_cgfs_la_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
429 | endif | |
430 | ||
431 | if !HAVE_STRLCPY | |
432 | pam_cgfs_la_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
433 | endif | |
434 | ||
f4274ae8 | 435 | pam_cgfs_la_CFLAGS = $(AM_CFLAGS) -DNO_LXC_CONF |
71174d46 | 436 | |
ba7bd8c8 CB |
437 | pam_cgfs_la_LIBADD = $(AM_LIBS) \ |
438 | $(PAM_LIBS) \ | |
a8eed52c | 439 | $(DLOG_LIBS) \ |
ba7bd8c8 | 440 | -L$(top_srcdir) |
71174d46 | 441 | |
ba7bd8c8 CB |
442 | pam_cgfs_la_LDFLAGS = $(AM_LDFLAGS) \ |
443 | -avoid-version \ | |
444 | -module \ | |
9089937b CB |
445 | -shared \ |
446 | -Wl,-no-undefined | |
7ac43d3d | 447 | endif |
f7a8609f | 448 | endif |
7ac43d3d | 449 | |
26419a7a | 450 | install-exec-local: install-libLTLIBRARIES |
2a59a681 SH |
451 | mkdir -p $(DESTDIR)$(datadir)/lxc |
452 | install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc | |
f4790f1f SG |
453 | mv $(shell readlink -f $(DESTDIR)$(libdir)/liblxc.so) $(DESTDIR)$(libdir)/liblxc.so.@LXC_ABI@ |
454 | rm -f $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.1 | |
5b46e19c | 455 | cd $(DESTDIR)$(libdir); \ |
26419a7a SG |
456 | ln -sf liblxc.so.@LXC_ABI@ liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)); \ |
457 | ln -sf liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) liblxc.so | |
45e854dc SG |
458 | |
459 | install-exec-hook: | |
460 | chmod u+s $(DESTDIR)$(libexecdir)/lxc/lxc-user-nic | |
5b46e19c CLG |
461 | |
462 | uninstall-local: | |
463 | $(RM) $(DESTDIR)$(libdir)/liblxc.so* | |
57d533fb | 464 | $(RM) $(DESTDIR)$(libdir)/liblxc.a |
f7a8609f | 465 | if ENABLE_PAM |
7ac43d3d CB |
466 | if HAVE_PAM |
467 | $(RM) $(DESTDIR)$(pamdir)/pam_cgfs.so* | |
468 | ||
469 | install-data-hook: install-pamLTLIBRARIES | |
470 | $(RM) "$(DESTDIR)$(pamdir)/pam_cgfs.la" | |
471 | $(RM) "$(DESTDIR)$(pamdir)/pam_cgfs.a" | |
472 | endif | |
f7a8609f | 473 | endif |