Use VCMD_set_sched_v4 as intended.
[util-vserver.git] / 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_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 \
33                                 lib/getvserverctx.c \
34                                 lib/getvservername.c \
35                                 lib/getvservervdir.c \
36                                 lib/xidopt2xid.c \
37                                 lib/nidopt2nid.c
38 lib_v11_SRCS =                  lib/syscall_rlimit.c \
39                                 lib/syscall_rlimit-v11.hc \
40                                 lib/syscall_kill.c  \
41                                 lib/syscall_kill-v11.hc
42 lib_v13_SRCS =                  lib/syscall_ctxcreate.c \
43                                 lib/syscall_ctxcreate-v13.hc \
44                                 lib/syscall_ctxmigrate.c \
45                                 lib/syscall_ctxmigrate-v13.hc \
46                                 lib/syscall_cleanupnamespace-v13.hc \
47                                 lib/syscall_cleanupnamespace.c \
48                                 lib/syscall_enternamespace-v13.hc \
49                                 lib/syscall_enternamespace.c \
50                                 lib/syscall_getccaps-v13.hc \
51                                 lib/syscall_getccaps.c \
52                                 lib/syscall_getcflags-v13.hc \
53                                 lib/syscall_getcflags.c \
54                                 lib/syscall_getiattr-fscompat.hc \
55                                 lib/syscall_getiattr-v13.hc \
56                                 lib/syscall_getiattr.c \
57                                 lib/syscall_getncaps-net.hc \
58                                 lib/syscall_getncaps.c \
59                                 lib/syscall_getnflags-net.hc \
60                                 lib/syscall_getnflags.c \
61                                 lib/syscall_getnxinfo-net.hc \
62                                 lib/syscall_getnxinfo.c \
63                                 lib/syscall_gettasknid-net.hc \
64                                 lib/syscall_gettasknid.c \
65                                 lib/syscall_gettaskxid-oldproc.hc \
66                                 lib/syscall_gettaskxid-v13.hc \
67                                 lib/syscall_gettaskxid.c \
68                                 lib/syscall_getvhiname-olduts.hc \
69                                 lib/syscall_getvhiname-v13.hc \
70                                 lib/syscall_getvhiname.c \
71                                 lib/syscall_getvxinfo-oldproc.hc \
72                                 lib/syscall_getvxinfo-v13.hc \
73                                 lib/syscall_getvxinfo.c \
74                                 lib/syscall_netadd-net.hc \
75                                 lib/syscall_netadd.c \
76                                 lib/syscall_netcreate-net.hc \
77                                 lib/syscall_netcreate.c \
78                                 lib/syscall_netmigrate-net.hc \
79                                 lib/syscall_netmigrate.c \
80                                 lib/syscall_netremove-net.hc \
81                                 lib/syscall_netremove.c \
82                                 lib/syscall_setccaps-v13.hc \
83                                 lib/syscall_setccaps.c \
84                                 lib/syscall_setcflags-v13.hc \
85                                 lib/syscall_setcflags.c \
86                                 lib/syscall_setiattr-fscompat.hc \
87                                 lib/syscall_setiattr-v13.hc \
88                                 lib/syscall_setiattr.c \
89                                 lib/syscall_setnamespace-v13.hc \
90                                 lib/syscall_setnamespace.c \
91                                 lib/syscall_setncaps-net.hc \
92                                 lib/syscall_setncaps.c \
93                                 lib/syscall_setnflags-net.hc \
94                                 lib/syscall_setnflags.c \
95                                 lib/syscall_setsched-v13.hc \
96                                 lib/syscall_setsched-v13obs.hc \
97                                 lib/syscall_setsched.c \
98                                 lib/syscall_setvhiname-olduts.hc \
99                                 lib/syscall_setvhiname-v13.hc \
100                                 lib/syscall_setvhiname.c \
101                                 lib/syscall_waitexit.c  \
102                                 lib/syscall_waitexit-v13.hc \
103                                 lib/bcaps-v13.c \
104                                 lib/bcaps_list-v13.c \
105                                 lib/ccaps-v13.c \
106                                 lib/ccaps_list-v13.c \
107                                 lib/cflags-v13.c \
108                                 lib/cflags_list-v13.c \
109                                 lib/ncaps-net.c \
110                                 lib/ncaps_list-net.c \
111                                 lib/nflags-net.c \
112                                 lib/nflags_list-net.c
113 lib_v21_SRCS =                  lib/syscall_setccaps-v21.hc \
114                                 lib/syscall_setsched-v21.hc \
115                                 lib/syscall_rlimitstat.c \
116                                 lib/syscall_rlimitstat-v21.hc \
117                                 lib/syscall_resetminmax.c \
118                                 lib/syscall_resetminmax-v21.hc \
119                                 lib/syscall_getvci.c \
120                                 lib/syscall_getvci-v21.hc \
121                                 lib/syscall_virtstat.c \
122                                 lib/syscall_virtstat-v21.hc \
123                                 lib/syscall_ctxstat.c \
124                                 lib/syscall_ctxstat-v21.hc \
125                                 lib/syscall_getspacemask.c \
126                                 lib/syscall_getspacemask-v21.hc \
127                                 lib/syscall_enternamespace-v21.hc \
128                                 lib/syscall_setnamespace-v21.hc \
129                                 lib/syscall_ctxmigrate-v21.hc \
130                                 lib/syscall_setmapping.c \
131                                 lib/syscall_setmapping-v21.hc \
132                                 lib/syscall_schedinfo.c \
133                                 lib/syscall_schedinfo-v21.hc
134
135 if ENSC_HAVE_C99_COMPILER
136 lib_v13_SRCS +=                 lib/syscall_adddlimit-v13.hc \
137                                 lib/syscall_adddlimit.c \
138                                 lib/syscall_getdlimit-v13.hc \
139                                 lib/syscall_getdlimit.c \
140                                 lib/syscall_remdlimit-v13.hc \
141                                 lib/syscall_remdlimit.c \
142                                 lib/syscall_setdlimit-v13.hc \
143                                 lib/syscall_setdlimit.c
144 endif
145
146 PKGCONFIG_FILES =               lib/util-vserver
147
148 lib_SRCS =                      lib/syscall.c \
149                                 lib/checkversion.c \
150                                 lib/checkconfig.c \
151                                 lib/isdirectory.c \
152                                 lib/isfile.c \
153                                 lib/islink.c \
154                                 lib/getnbipv4root.c \
155                                 lib/getversion.c \
156                                 lib/capabilities.c \
157                                 lib/getfilecontext.c \
158                                 lib/getinsecurebcaps.c \
159                                 lib/getxidtype.c \
160                                 lib/isdynamicxid.c \
161                                 lib/issupported.c \
162                                 lib/issupportedstring.c \
163                                 lib/listparser_uint32.c \
164                                 lib/listparser_uint64.c \
165                                 lib/personalityflag.c \
166                                 lib/personalityflag_list.c \
167                                 lib/personalitytype.c \
168                                 lib/syscall-syscall.c \
169                                 lib/val2text-t2v-uint32.c \
170                                 lib/val2text-t2v-uint64.c \
171                                 lib/val2text-v2t-uint32.c \
172                                 lib/val2text-v2t-uint64.c \
173                                 lib/parselimit.c \
174                                 $(lib_legacy_SRCS) \
175                                 $(lib_compat_SRCS) \
176                                 $(lib_management_SRCS) \
177                                 $(lib_v11_SRCS) \
178                                 $(lib_v13_SRCS) \
179                                 $(lib_v21_SRCS) \
180                                 $(ensc_fmt_SRCS)
181
182 include_HEADERS +=              lib/vserver.h
183
184 noinst_HEADERS +=               lib/syscall-compat.hc \
185                                 lib/syscall-legacy.hc \
186                                 lib/syscall-fallback.h \
187                                 lib/createskeleton-full.hc \
188                                 lib/createskeleton-short.hc \
189                                 lib/fmt.h \
190                                 lib/getversion-internal.hc \
191                                 lib/safechroot-internal.hc \
192                                 lib/ioctl-getext2flags.hc \
193                                 lib/ioctl-getfilecontext.hc \
194                                 lib/ioctl-setext2flags.hc \
195                                 lib/ioctl-setfilecontext.hc \
196                                 lib/ioctl-getxflg.hc \
197                                 lib/ioctl-setxflg.hc \
198                                 lib/ext2fs.h \
199                                 lib/listparser.hc \
200                                 lib/val2text.hc \
201                                 lib/virtual.h \
202                                 lib/internal.h \
203                                 lib/syscall-alternative.h \
204                                 lib/syscall-wrap.h \
205                                 lib/utils-legacy.h \
206                                 lib/vserver-internal.h
207
208 LIBVSERVER_GLIBC =              lib/libvserver.la
209 lib_LTLIBRARIES +=              $(LIBVSERVER_GLIBC)
210
211 if USE_DIETLIBC
212 LIBVSERVER_DIET =               lib/libvserver.a
213 LIBVSERVER =                    $(LIBVSERVER_DIET)
214 lib_LIBRARIES +=                $(LIBVSERVER_DIET)
215 else
216 LIBVSERVER_DIET =               lib-dietlibc-not-enabled-error.a
217 LIBVSERVER =                    lib/libvserver.la
218 endif
219
220 lib_libvserver_la_SOURCES =     $(lib_SRCS)
221 lib_libvserver_la_CPPFLAGS =    $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
222 lib_libvserver_la_LDFLAGS =     -version $(lib_VERSION)
223
224 lib_libvserver_a_SOURCES =      $(lib_SRCS)
225 lib_libvserver_a_CPPFLAGS =     $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
226
227 DIETPROGS +=                    lib/lib_libvserver_a-%          \
228                                 ensc_fmt/lib_libvserver_a-%
229
230 CLEANFILES +=                   lib/libvserver.la \
231                                 lib/libvserver.a
232
233 include $(srcdir)/lib/apidoc/Makefile-files
234 include $(srcdir)/lib/testsuite/Makefile-files