util-vserver-0.30.208
[util-vserver.git] / lib_internal / Makefile-files
diff --git a/lib_internal/Makefile-files b/lib_internal/Makefile-files
new file mode 100644 (file)
index 0000000..e6bb64b
--- /dev/null
@@ -0,0 +1,119 @@
+## $Id: Makefile-files,v 1.18 2005/07/04 22:35:47 ensc Exp $  -*- makefile -*-
+
+## Copyright (C) 2003,2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+##  
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2, or (at your option)
+## any later version.
+##  
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##  
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+##  
+
+
+LIBINTERNAL_GLIBC =            lib_internal/libinternal-glibc.a
+noinst_LIBRARIES +=            $(LIBINTERNAL_GLIBC)
+
+if USE_DIETLIBC
+LIBINTERNAL_DIET =             lib_internal/libinternal-diet.a
+LIBINTERNAL =                  $(LIBINTERNAL_DIET)
+noinst_LIBRARIES +=            $(LIBINTERNAL_DIET)
+else
+LIBINTERNAL_DIET =             lib-dietlibc-not-enabled-error.a
+LIBINTERNAL =                  $(LIBINTERNAL_GLIBC)
+endif
+
+
+command_SRCS =                 lib_internal/command-appendparameter.c \
+                               lib_internal/command-setparams.c \
+                               lib_internal/command-exec.c\
+                               lib_internal/command-free.c \
+                               lib_internal/command-init.c \
+                               lib_internal/command-reset.c \
+                               lib_internal/command-wait.c \
+                               lib_internal/command.h
+
+if ENSC_HAVE_C99_COMPILER
+filecfg_SRCS =                 lib_internal/filecfg.h \
+                               lib_internal/filecfg-iteratemultiline.c \
+                               lib_internal/filecfg-readentryflag.c \
+                               lib_internal/filecfg-readentrystr.c \
+                               lib_internal/matchlist-initbyvserver.c \
+                               lib_internal/matchvserverinfo-init.c \
+                               lib_internal/unify-copy.c
+endif
+
+noinst_HEADERS += \
+                               lib_internal/coreassert.h \
+                               lib_internal/errinfo.h \
+                               lib_internal/jail.h \
+                               lib_internal/matchlist.h \
+                               lib_internal/pathinfo.h \
+                               lib_internal/string.h \
+                               lib_internal/sys_clone.h \
+                               lib_internal/sys_personality.h \
+                               lib_internal/unify.h \
+                               lib_internal/util.h \
+                               lib_internal/util-cast.h \
+                               lib_internal/util-commonstrings.h \
+                               lib_internal/util-debug.h \
+                               lib_internal/util-declarecmd.h \
+                               lib_internal/util-dimof.h \
+                               lib_internal/util-dotfile.h \
+                               lib_internal/util-exitlikeprocess.h \
+                               lib_internal/util-io.h \
+                               lib_internal/util-lockfile.h \
+                               lib_internal/util-mem.h \
+                               lib_internal/util-perror.h \
+                               lib_internal/util-safechdir.h \
+                               lib_internal/util-unixsock.h \
+                               lib_internal/string.hc
+
+lib_internal_libinternal_common_SRCS = \
+                               lib_internal/errinfo-writeerrno.c \
+                               lib_internal/jailintotempdir.c \
+                               lib_internal/matchlist-appendfiles.c \
+                               lib_internal/matchlist-compare.c \
+                               lib_internal/matchlist-destroy.c \
+                               lib_internal/matchlist-init.c \
+                               lib_internal/matchlist-initmanually.c \
+                               lib_internal/matchlist-initrefserverlist.c \
+                               lib_internal/matchlist-printid.c \
+                               lib_internal/matchvserverinfo-free.c \
+                               lib_internal/pathinfo-append.c \
+                               lib_internal/pathinfo-test.c \
+                               lib_internal/switchtowatchxid.c \
+                               lib_internal/unify-deunify.c \
+                               lib_internal/unify-settime.c \
+                               lib_internal/unify-unify.c \
+                               lib_internal/unify-isiunlinkable.c \
+                               lib_internal/util-canonify.c \
+                               lib_internal/util-exitlikeprocess.c \
+                               lib_internal/util-isnumber.c \
+                               lib_internal/util-lockfile.c \
+                               lib_internal/util-safechdir.c \
+                               $(command_SRCS) \
+                               $(filecfg_SRCS)
+
+lib_internal_libinternal_diet_a_SOURCES =      \
+                               $(lib_internal_libinternal_common_SRCS)
+
+lib_internal_libinternal_glibc_a_SOURCES =     \
+                               $(lib_internal_libinternal_common_SRCS)
+
+lib_internal_libinternal_diet_a_CPPFLAGS =     $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
+lib_internal_libinternal_glibc_a_CPPFLAGS =    $(AM_CPPFLAGS) $(LIB_DEBUG_CPPFLAGS)
+
+DIETPROGS +=                   lib_internal/libinternal-diet.a
+
+CLEANFILES +=                  lib_internal/libinternal-diet.a \
+                               lib_internal/libinternal-glibc.a
+
+include $(top_srcdir)/lib_internal/testsuite/Makefile-files