Move 'captivemodid' library to libcaptive.
[captive.git] / src / libcaptive / Makefile.am
1 # $Id$
2 # automake source for the toplibcaptivesrclevel Makefile 
3 # Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 include $(top_srcdir)/Makefile-head.am
20 include $(top_srcdir)/src/libcaptive/Makefile-libcaptive.am
21
22 # FIXME: Dependency: storage -> sandbox
23 SUBDIRS=include reactos halcaptive captivemodid cc cm ex fs io kd ke ldr mm nt ob po ps rtl se sandbox client storage
24
25 EXTRA_DIST+= \
26                 Makefile-libcaptive.am
27
28 lib_LTLIBRARIES+=libcaptive.la
29 libcaptive_la_LIBADD= \
30                 reactos/libreactos.la \
31                 halcaptive/libhalcaptive.la \
32                 captivemodid/libcaptivemodid.la \
33                 cc/libcc.la \
34                 cm/libcm.la \
35                 ex/libex.la \
36                 fs/libfs.la \
37                 io/libio.la \
38                 kd/libkd.la \
39                 ke/libke.la \
40                 ldr/libldr.la \
41                 mm/libmm.la \
42                 nt/libnt.la \
43                 ob/libob.la \
44                 po/libpo.la \
45                 ps/libps.la \
46                 rtl/librtl.la \
47                 se/libse.la \
48                 storage/libstorage.la \
49                 sandbox/libsandbox.la \
50                 client/libclient.la
51 libcaptive_la_LDFLAGS=-release $(VERSION)
52 libcaptive_la_SOURCES=
53
54 EXTRA_DIST+=captive.pod.pl.in
55 CLEANFILES+=captive.pod captive.7
56 if ENABLE_MAN_PAGES
57 captive_man_cond=captive.7
58 endif
59 man_MANS=$(captive_man_cond)
60
61 install-exec-hook:
62         if test `id -u` -eq 0 -a -z "$(DESTDIR)";then \
63                 if test x$(libdir) != x/lib -a x$(libdir) != x/usr/lib && ! grep -q '^$(libdir)$$' /etc/ld.so.conf;then \
64                         echo -n "WARNING: Add '$(libdir)' to your '/etc/ld.so.conf' and run ldconfig(8)! Press ENTER...";read; \
65                 fi; \
66                 ldconfig || echo -n "WARNING: Failed to run ldconfig(8) - run manually! Press ENTER...";read; \
67         fi
68