Makefile-files (8602B)
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/tagopt2tag.c \ 39 lib/exitlikeprocess.c 40 lib_v11_SRCS = lib/syscall_rlimit.c \ 41 lib/syscall_rlimit-v11.hc \ 42 lib/syscall_kill.c \ 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 \ 105 lib/bcaps-v13.c \ 106 lib/bcaps_list-v13.c \ 107 lib/ccaps-v13.c \ 108 lib/ccaps_list-v13.c \ 109 lib/cflags-v13.c \ 110 lib/cflags_list-v13.c \ 111 lib/ncaps-net.c \ 112 lib/ncaps_list-net.c \ 113 lib/nflags-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 142 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 148 149 lib_netv2_SRCS = lib/syscall_netadd-netv2.hc \ 150 lib/syscall_netremove-netv2.hc 151 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_setumask-v23.hc \ 161 lib/syscall_setumask.c \ 162 lib/syscall_getumask-v23.hc \ 163 lib/syscall_getumask.c \ 164 lib/syscall_setbadness-v23.hc \ 165 lib/syscall_getspacedefault.c \ 166 lib/syscall_getspacedefault-v23.hc \ 167 lib/syscall_setnamespace-v23.hc \ 168 lib/syscall_enternamespace-v23.hc \ 169 lib/syscall_getspacemask-v23.hc \ 170 lib/umask-v23.c \ 171 lib/umask_list-v23.c 172 173 if ENSC_HAVE_C99_COMPILER 174 lib_v13_SRCS += lib/syscall_adddlimit-v13.hc \ 175 lib/syscall_adddlimit.c \ 176 lib/syscall_getdlimit-v13.hc \ 177 lib/syscall_getdlimit.c \ 178 lib/syscall_remdlimit-v13.hc \ 179 lib/syscall_remdlimit.c \ 180 lib/syscall_setdlimit-v13.hc \ 181 lib/syscall_setdlimit.c 182 endif 183 184 PKGCONFIG_FILES = lib/util-vserver 185 186 lib_SRCS = lib/syscall.c \ 187 lib/checkversion.c \ 188 lib/checkconfig.c \ 189 lib/isdirectory.c \ 190 lib/isfile.c \ 191 lib/islink.c \ 192 lib/getnbipv4root.c \ 193 lib/getversion.c \ 194 lib/capabilities.c \ 195 lib/getfilecontext.c \ 196 lib/getinsecurebcaps.c \ 197 lib/getxidtype.c \ 198 lib/isdynamicxid.c \ 199 lib/issupported.c \ 200 lib/issupportedstring.c \ 201 lib/listparser_uint32.c \ 202 lib/listparser_uint64.c \ 203 lib/personalityflag.c \ 204 lib/personalityflag_list.c \ 205 lib/personalitytype.c \ 206 lib/syscall-syscall.c \ 207 lib/val2text-t2v-uint32.c \ 208 lib/val2text-t2v-uint64.c \ 209 lib/val2text-v2t-uint32.c \ 210 lib/val2text-v2t-uint64.c \ 211 lib/parselimit.c \ 212 lib/getkernel.c \ 213 $(lib_legacy_SRCS) \ 214 $(lib_compat_SRCS) \ 215 $(lib_management_SRCS) \ 216 $(lib_v11_SRCS) \ 217 $(lib_v13_SRCS) \ 218 $(lib_v21_SRCS) \ 219 $(lib_v22_SRCS) \ 220 $(lib_netv2_SRCS) \ 221 $(lib_v23_SRCS) \ 222 $(ensc_fmt_SRCS) 223 224 include_HEADERS += lib/vserver.h 225 226 noinst_HEADERS += lib/syscall-compat.hc \ 227 lib/syscall-legacy.hc \ 228 lib/syscall-fallback.h \ 229 lib/createskeleton-full.hc \ 230 lib/createskeleton-short.hc \ 231 lib/fmt.h \ 232 lib/getversion-internal.hc \ 233 lib/safechroot-internal.hc \ 234 lib/ioctl-getext2flags.hc \ 235 lib/ioctl-getfilecontext.hc \ 236 lib/ioctl-setext2flags.hc \ 237 lib/ioctl-setfilecontext.hc \ 238 lib/ioctl-getxflg.hc \ 239 lib/ioctl-setxflg.hc \ 240 lib/ext2fs.h \ 241 lib/listparser.hc \ 242 lib/val2text.hc \ 243 lib/virtual.h \ 244 lib/internal.h \ 245 lib/syscall-alternative.h \ 246 lib/syscall-wrap.h \ 247 lib/utils-legacy.h \ 248 lib/vserver-internal.h 249 250 LIBVSERVER_GLIBC = lib/libvserver.la 251 lib_LTLIBRARIES += $(LIBVSERVER_GLIBC) 252 253 if USE_DIETLIBC 254 LIBVSERVER_DIET = lib/libvserver.a 255 LIBVSERVER = $(LIBVSERVER_DIET) 256 lib_LIBRARIES += $(LIBVSERVER_DIET) 257 else 258 LIBVSERVER_DIET = lib-dietlibc-not-enabled-error.a 259 LIBVSERVER = lib/libvserver.la 260 endif 261 262 lib_libvserver_la_SOURCES = $(lib_SRCS) 263 lib_libvserver_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS) 264 lib_libvserver_la_LDFLAGS = -version $(lib_VERSION) 265 if HAVE_VERSIONING 266 lib_libvserver_la_LDFLAGS += -Wl,-version-script=$(top_srcdir)/lib/libvserver.ver 267 EXTRA_DIST += lib/libvserver.ver 268 endif 269 270 lib_libvserver_a_SOURCES = $(lib_SRCS) 271 lib_libvserver_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS) 272 273 DIETPROGS += lib/lib_libvserver_a-% \ 274 ensc_fmt/lib_libvserver_a-% 275 276 CLEANFILES += lib/libvserver.la \ 277 lib/libvserver.a 278 279 include $(srcdir)/lib/apidoc/Makefile-files 280 include $(srcdir)/lib/testsuite/Makefile-files