Workarounded broken 'make clean;make'.
[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 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                 cc/libcc.la \
33                 cm/libcm.la \
34                 ex/libex.la \
35                 fs/libfs.la \
36                 io/libio.la \
37                 kd/libkd.la \
38                 ke/libke.la \
39                 ldr/libldr.la \
40                 mm/libmm.la \
41                 nt/libnt.la \
42                 ob/libob.la \
43                 po/libpo.la \
44                 ps/libps.la \
45                 rtl/librtl.la \
46                 se/libse.la \
47                 storage/libstorage.la \
48                 sandbox/libsandbox.la \
49                 client/libclient.la
50 libcaptive_la_LDFLAGS=-release $(VERSION)
51 libcaptive_la_SOURCES=
52
53 EXTRA_DIST+=captive.pod.pl.in
54 CLEANFILES+=captive.pod captive.7
55 if ENABLE_MAN_PAGES
56 captive_man_cond=captive.7
57 endif
58 man_MANS=$(captive_man_cond)
59
60 install-exec-hook:
61         if test `id -u` -eq 0 -a -z "$(DESTDIR)";then \
62                 if test x$(libdir) != x/lib -a x$(libdir) != x/usr/lib && ! grep -q '^$(libdir)$$' /etc/ld.so.conf;then \
63                         echo -n "WARNING: Add '$(libdir)' to your '/etc/ld.so.conf' and run ldconfig(8)! Press ENTER...";read; \
64                 fi; \
65                 ldconfig || echo -n "WARNING: Failed to run ldconfig(8) - run manually! Press ENTER...";read; \
66         fi
67