1 ## $Id$ -*- makefile -*-
3 ## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
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)
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.
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.
22 lib_compat_SRCS = lib/cflags-compat.c \
23 lib/cflags_list-compat.c
24 lib_legacy_SRCS = lib/getprocentry-legacy.c
25 lib_management_SRCS = lib/comparevserverbyid.c \
26 lib/createskeleton.c \
27 lib/getvserverbyctx.c \
28 lib/getvserverbyctx-compat.hc \
29 lib/getvserverbyctx-v13.hc \
30 lib/getvservercfgstyle.c \
31 lib/getvserverappdir.c \
32 lib/getvservercfgdir.c \
34 lib/getvservername.c \
35 lib/getvservervdir.c \
40 lib_v11_SRCS = lib/syscall_rlimit.c \
41 lib/syscall_rlimit-v11.hc \
43 lib/syscall_kill-v11.hc
44 lib_v13_SRCS = lib/syscall_ctxcreate.c \
45 lib/syscall_ctxcreate-v13.hc \
46 lib/syscall_ctxmigrate.c \
47 lib/syscall_ctxmigrate-v13.hc \
48 lib/syscall_cleanupnamespace-v13.hc \
49 lib/syscall_cleanupnamespace.c \
50 lib/syscall_enternamespace-v13.hc \
51 lib/syscall_enternamespace.c \
52 lib/syscall_getccaps-v13.hc \
53 lib/syscall_getccaps.c \
54 lib/syscall_getcflags-v13.hc \
55 lib/syscall_getcflags.c \
56 lib/syscall_getiattr-fscompat.hc \
57 lib/syscall_getiattr-v13.hc \
58 lib/syscall_getiattr.c \
59 lib/syscall_getncaps-net.hc \
60 lib/syscall_getncaps.c \
61 lib/syscall_getnflags-net.hc \
62 lib/syscall_getnflags.c \
63 lib/syscall_getnxinfo-net.hc \
64 lib/syscall_getnxinfo.c \
65 lib/syscall_gettasknid-net.hc \
66 lib/syscall_gettasknid.c \
67 lib/syscall_gettaskxid-oldproc.hc \
68 lib/syscall_gettaskxid-v13.hc \
69 lib/syscall_gettaskxid.c \
70 lib/syscall_getvhiname-olduts.hc \
71 lib/syscall_getvhiname-v13.hc \
72 lib/syscall_getvhiname.c \
73 lib/syscall_getvxinfo-oldproc.hc \
74 lib/syscall_getvxinfo-v13.hc \
75 lib/syscall_getvxinfo.c \
76 lib/syscall_netadd-net.hc \
77 lib/syscall_netadd.c \
78 lib/syscall_netcreate-net.hc \
79 lib/syscall_netcreate.c \
80 lib/syscall_netmigrate-net.hc \
81 lib/syscall_netmigrate.c \
82 lib/syscall_netremove-net.hc \
83 lib/syscall_netremove.c \
84 lib/syscall_setccaps-v13.hc \
85 lib/syscall_setccaps.c \
86 lib/syscall_setcflags-v13.hc \
87 lib/syscall_setcflags.c \
88 lib/syscall_setiattr-fscompat.hc \
89 lib/syscall_setiattr-v13.hc \
90 lib/syscall_setiattr.c \
91 lib/syscall_setnamespace-v13.hc \
92 lib/syscall_setnamespace.c \
93 lib/syscall_setncaps-net.hc \
94 lib/syscall_setncaps.c \
95 lib/syscall_setnflags-net.hc \
96 lib/syscall_setnflags.c \
97 lib/syscall_setsched-v13.hc \
98 lib/syscall_setsched-v13obs.hc \
99 lib/syscall_setsched.c \
100 lib/syscall_setvhiname-olduts.hc \
101 lib/syscall_setvhiname-v13.hc \
102 lib/syscall_setvhiname.c \
103 lib/syscall_waitexit.c \
104 lib/syscall_waitexit-v13.hc \
106 lib/bcaps_list-v13.c \
108 lib/ccaps_list-v13.c \
110 lib/cflags_list-v13.c \
112 lib/ncaps_list-net.c \
114 lib/nflags_list-net.c
115 lib_v21_SRCS = lib/syscall_setccaps-v21.hc \
116 lib/syscall_setsched-v21.hc \
117 lib/syscall_rlimitstat.c \
118 lib/syscall_rlimitstat-v21.hc \
119 lib/syscall_resetminmax.c \
120 lib/syscall_resetminmax-v21.hc \
121 lib/syscall_getvci.c \
122 lib/syscall_getvci-v21.hc \
123 lib/syscall_virtstat.c \
124 lib/syscall_virtstat-v21.hc \
125 lib/syscall_ctxstat.c \
126 lib/syscall_ctxstat-v21.hc \
127 lib/syscall_getspacemask.c \
128 lib/syscall_getspacemask-v21.hc \
129 lib/syscall_enternamespace-v21.hc \
130 lib/syscall_setnamespace-v21.hc \
131 lib/syscall_ctxmigrate-v21.hc \
132 lib/syscall_setmapping.c \
133 lib/syscall_setmapping-v21.hc \
134 lib/syscall_unsetmapping.c \
135 lib/syscall_unsetmapping-v21.hc \
136 lib/syscall_schedinfo.c \
137 lib/syscall_schedinfo-v21.hc \
138 lib/syscall_getccaps-v21.hc \
139 lib/syscall_getsched.c \
140 lib/syscall_getsched-v21.hc \
141 lib/syscall_ctxcreate-v21.hc
143 lib_v22_SRCS = lib/syscall_setsched-v22.hc \
144 lib/syscall_fsetiattr.c \
145 lib/syscall_fsetiattr-v22.hc \
146 lib/syscall_fgetiattr.c \
147 lib/syscall_fgetiattr-v22.hc
149 lib_netv2_SRCS = lib/syscall_netadd-netv2.hc \
150 lib/syscall_netremove-netv2.hc
152 lib_v23_SRCS = lib/syscall_tagmigrate-v23.hc \
153 lib/syscall_tagmigrate.c \
154 lib/syscall_tagcreate.c \
155 lib/syscall_tasktag-v23.hc \
156 lib/syscall_tasktag.c \
157 lib/syscall_getbadness.c \
158 lib/syscall_getbadness-v23.hc \
159 lib/syscall_setbadness.c \
160 lib/syscall_setbadness-v23.hc \
161 lib/syscall_ctxcreate-v23.hc \
162 lib/syscall_ctxmigrate-v23.hc \
163 lib/syscall_getspacedefault.c \
164 lib/syscall_getspacedefault-v23.hc
166 if ENSC_HAVE_C99_COMPILER
167 lib_v13_SRCS += lib/syscall_adddlimit-v13.hc \
168 lib/syscall_adddlimit.c \
169 lib/syscall_getdlimit-v13.hc \
170 lib/syscall_getdlimit.c \
171 lib/syscall_remdlimit-v13.hc \
172 lib/syscall_remdlimit.c \
173 lib/syscall_setdlimit-v13.hc \
174 lib/syscall_setdlimit.c
177 PKGCONFIG_FILES = lib/util-vserver
179 lib_SRCS = lib/syscall.c \
185 lib/getnbipv4root.c \
188 lib/getfilecontext.c \
189 lib/getinsecurebcaps.c \
193 lib/issupportedstring.c \
194 lib/listparser_uint32.c \
195 lib/listparser_uint64.c \
196 lib/personalityflag.c \
197 lib/personalityflag_list.c \
198 lib/personalitytype.c \
199 lib/syscall-syscall.c \
200 lib/val2text-t2v-uint32.c \
201 lib/val2text-t2v-uint64.c \
202 lib/val2text-v2t-uint32.c \
203 lib/val2text-v2t-uint64.c \
207 $(lib_management_SRCS) \
216 include_HEADERS += lib/vserver.h
218 noinst_HEADERS += lib/syscall-compat.hc \
219 lib/syscall-legacy.hc \
220 lib/syscall-fallback.h \
221 lib/createskeleton-full.hc \
222 lib/createskeleton-short.hc \
224 lib/getversion-internal.hc \
225 lib/safechroot-internal.hc \
226 lib/ioctl-getext2flags.hc \
227 lib/ioctl-getfilecontext.hc \
228 lib/ioctl-setext2flags.hc \
229 lib/ioctl-setfilecontext.hc \
230 lib/ioctl-getxflg.hc \
231 lib/ioctl-setxflg.hc \
237 lib/syscall-alternative.h \
240 lib/vserver-internal.h
242 LIBVSERVER_GLIBC = lib/libvserver.la
243 lib_LTLIBRARIES += $(LIBVSERVER_GLIBC)
246 LIBVSERVER_DIET = lib/libvserver.a
247 LIBVSERVER = $(LIBVSERVER_DIET)
248 lib_LIBRARIES += $(LIBVSERVER_DIET)
250 LIBVSERVER_DIET = lib-dietlibc-not-enabled-error.a
251 LIBVSERVER = lib/libvserver.la
254 lib_libvserver_la_SOURCES = $(lib_SRCS)
255 lib_libvserver_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
256 lib_libvserver_la_LDFLAGS = -version $(lib_VERSION)
258 lib_libvserver_a_SOURCES = $(lib_SRCS)
259 lib_libvserver_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
261 DIETPROGS += lib/lib_libvserver_a-% \
262 ensc_fmt/lib_libvserver_a-%
264 CLEANFILES += lib/libvserver.la \
267 include $(srcdir)/lib/apidoc/Makefile-files
268 include $(srcdir)/lib/testsuite/Makefile-files