82c3ffed26e37b811cb5054e9249162a804e0566
[util-vserver.git] / util-vserver / Makefile.am
1 ## $Id$
2
3 # Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
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; either version 2, or (at your option)
8 # any later version.
9 #  
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #  
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #  
19
20 ACLOCAL_AMFLAGS         =  -I m4
21 SUBDIRS                 =  . distrib
22
23 sysvdir                 =  $(sysconfdir)/init.d
24 confdir                 =  $(sysconfdir)/vservers
25
26 include_HEADERS         =  $(lib_HDRS)
27 noinst_HEADERS          =  $(src_HDRS)
28
29 lib_LIBRARIES           =  $(lib_lib_LIBS)
30
31 pkglib_SCRIPTS          =  $(scripts_SCRPTS)
32 pkglib_DATA             =  $(scriptscfg_DATA)
33 pkglib_PROGRAMS         =  $(src_pkglib_PRGS)
34
35 sbin_SCRIPTS            =  $(scripts_PRGS)
36 sbin_PROGRAMS           =  $(src_sbin_PRGS)
37 noinst_PROGRAMS         =  $(test_PRGS)
38
39 sysv_SCRIPTS            =  $(sysv_SCRPTS)
40 sysconf_DATA            =  $(sysv_CFG)
41 conf_DATA               =  newvserver.defaults
42
43 BUILT_SOURCES           =  linuxcaps.h
44
45 man_MANS                =  $(man_DATMAN)
46
47 EXTRA_DIST              =  $(sysv_XTRAS) $(sysv_CFG) \
48                            $(doc_DAT) $(man_DATMAN) \
49                            $(scripts_SCRPTS) $(scripts_PRGS) $(scripts_XTRAS) \
50                            vserver.spec newvserver.defaults \
51                            m4/ensc_cflags.m4 \
52                            THANKS
53
54 AM_CPPFLAGS             =  -I $(top_srcdir)/lib -D VERSION=\"$(VERSION)\" -D PKGLIBDIR=\"$(pkglibdir)\" -D _GNU_SOURCE
55 AM_CFLAGS               =  -Wall -pedantic
56
57 CLEANFILES              =  $(sysv_GENSCRPTS) $(scripts_GENSCRPTS) linuxcaps.h
58
59 if USE_DIETLIBC
60 DIET                    =  diet
61 DIET_FLAGS              =
62 DIET_CC                :=  $(DIET) $(DIET_FLAGS) $(CC)
63 endif
64
65 linuxcaps.h:
66                 ln -sf ${kernelincludedir}/linux/capability.h linuxcaps.h
67
68
69 include $(top_srcdir)/lib/Makefile-files
70 include $(top_srcdir)/src/Makefile-files
71 include $(top_srcdir)/doc/Makefile-files
72 include $(top_srcdir)/man/Makefile-files
73 include $(top_srcdir)/scripts/Makefile-files
74 include $(top_srcdir)/tests/Makefile-files
75 include $(top_srcdir)/sysv/Makefile-files
76
77 include $(top_srcdir)/m4/gpgsig.am
78 include $(top_srcdir)/m4/validate.am
79 include $(top_srcdir)/m4/changelog.am