* added vc_kill() syscall (merged from 0.26.90)
[util-vserver.git] / util-vserver / lib / Makefile-files
1 ## $Id$  -*- makefile -*-
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 lib_VERSION =                   0.0.0
21
22 lib_legacy_SRCS                 =  lib/getprocentry-legacy.c
23 lib_management_SRCS             =  lib/getvserverbyctx.c \
24                                    lib/getvservercfgstyle.c \
25                                    lib/getvserverctx.c \
26                                    lib/getvservername.c \
27                                    lib/getvservervdir.c
28 lib_v11_SRCS                    =  lib/syscall_rlimit.c \
29                                    lib/syscall_kill.c
30
31 PKGCONFIG_FILES                 =  lib/util-vserver
32
33 lib_SRCS                        =  lib/syscall.c \
34                                    lib/checkversion.c \
35                                    lib/getctx.c \
36                                    lib/getinitpid.c \
37                                    lib/getversion.c \
38                                    lib/fmt-32.c \
39                                    lib/fmt-64.c \
40                                    lib/fmtx-32.c \
41                                    lib/fmtx-64.c \
42                                    lib/capabilities.c \
43                                    $(lib_legacy_SRCS) \
44                                    $(lib_management_SRCS) \
45                                    $(lib_v11_SRCS)
46
47 lib_HDRS                        =  lib/vserver.h
48
49 lib_XHDRS                       =  lib/syscall-compat.hc \
50                                    lib/syscall-legacy.hc \
51                                    lib/syscall_rlimit-v11.hc \
52                                    lib/syscall_kill-v11.hc \
53                                    lib/getctx-compat.hc \
54                                    lib/getctx-legacy.hc \
55                                    lib/getinitpid-compat.hc \
56                                    lib/getinitpid-legacy.hc \
57                                    lib/getversion-internal.hc \
58                                    lib/safechroot-internal.hc \
59                                    lib/fmt.h \
60                                    lib/fmt.hc \
61                                    lib/fmtx.hc \
62                                    lib/fmt-internal.h \
63                                    lib/virtual.h \
64                                    lib/internal.h \
65                                    lib/utils-legacy.h \
66                                    lib/vserver-internal.h
67
68 #lib_lib_LIBS                   =  lib/libvserver.a lib/libvserver-pic.a
69 lib_lib_LIBS                    =
70 lib_lib_LTLIBS                  =  lib/libvserver.la
71
72 #lib_libvserver_la_SOURCES      =  $(lib_SRCS)
73 #lib_libvserver_a_SOURCES       =  $(lib_SRCS)
74 #lib_libvserver_a_CPPFLAGS      =  $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS) -I$(kernelincludedir) -D_REENTRANT -D_GNU_SOURCE
75 # _REENTRANT is needed for dietlibc to use __error_location
76
77 #lib_libvserver_pic_a_SOURCES   =  $(lib_SRCS)
78 #lib_libvserver_pic_a_CPPFLAGS  =  $(lib_libvserver_a_CPPFLAGS) -fPIC
79
80 lib_libvserver_la_SOURCES =     $(lib_SRCS)
81 lib_libvserver_la_CPPFLAGS =    $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS) -I$(kernelincludedir) -D_REENTRANT -D_GNU_SOURCE
82 lib_libvserver_la_LDFLAGS =     -version $(lib_VERSION)
83
84 lib_DIETPROGS =                 lib/lib_libvserver_la-% \
85                                 lib/lib_libvserver_a-% \
86                                 lib/lib_libvserver_pic_a-%