## $Id: Makefile-files,v 1.4 2003/11/11 17:48:10 ensc Exp $ --*- makefile -*--

## Copyright (C) 2003 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; version 2 of the License.
##  
## 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.

src_CHDRS			=  src/checksyntax-command.hc \
				   src/checksyntax-int.hc \
				   src/checksyntax-range.hc \
				   src/checksyntax-string.hc \
				   src/checksyntax-vserver.hc \
			   	   src/command-log.hc \
				   src/daemonize.hc \
				   src/fmt.hc

src_HDRS			=  src/command.h \
				   src/credentials.h \
				   src/djinni.h \
				   src/djinniprocess-internal.h \
				   src/djinniprocess.h \
				   src/exithandler.h \
				   src/fmt.h \
				   src/getctxproc.h \
				   src/logging.h \
				   src/msg-strings.h \
				   src/parameters.h \
				   src/syntaxinfo.h \
				   src/util-io.h \
				   src/util.h \
				   src/wish-internal.h \
				   src/wish.h \
				   src/wrappers-io.h \
				   src/wrappers.h \
				   $(src_CHDRS)

src_djinni_SOURCES		=  src/djinni.c \
				   src/wish.c \
				   src/wish-send.c

src_djinnid_SOURCES		=  src/command.c \
				   src/djinnid.c \
				   src/djinniprocess-chdir.c \
				   src/djinniprocess-new.c \
				   src/djinniprocess-run.c \
				   src/djinniprocess.c \
				   src/exithandler.c \
				   src/fillrandom.c \
				   src/fmt-32.c \
				   src/fmt-64.c \
				   src/get_current_dir_name.c \
				   src/getcontextofpid.c \
				   src/getctxproc.c \
				   src/logging.c \
				   src/logging-timestamp.c \
				   src/parameters-evaluate.c \
				   src/parameters.c \
				   src/readcreds.c \
				   src/syntaxinfo.c \
				   src/util-io.c \
				   src/wish-recv.c \
				   src/wish.c

src_djinnid_LDADD		=  $(VSERVER_LIBS)
src_djinnid_CPPFLAGS		=  $(AM_CPPFLAGS) $(VSERVER_CFLAGS) -DDO_WRAPPER_LOGGING

src_djinni_rub_SOURCES		=  src/djinni-rub.c \
				   src/fmt-32.c \
				   src/util-io.c

src_TESTS			=  src/getctxproc-test src/syntaxinfo-test \
				   src/timestamp-test

src_getctxproc_test_SOURCES	=  src/testsuite/getctxproc-test.c \
				   src/getctxproc.c
src_getctxproc_test_CPPFLAGS	=  -I$(top_srcdir)/src -DTESTSUITE $(VSERVER_CFLAGS) $(AM_CPPFLAGS)
src_getctxproc_test_LDADD	=  $(VSERVER_LIBS)

src_syntaxinfo_test_SOURCES    =  src/testsuite/syntaxinfo-test.c \
				   src/syntaxinfo.c
src_syntaxinfo_test_CPPFLAGS   =  -I$(top_srcdir)/src $(AM_CPPFLAGS)

src_timestamp_test_SOURCES	=  src/testsuite/timestamp-test.c \
				   src/logging-timestamp.c \
				   src/fmt-32.c \
				   src/fmt-64.c

src_timestamp_test_CPPFLAGS	=  -I$(top_srcdir)/src $(AM_CPPFLAGS)

AM_CPPFLAGS			=  -D_GNU_SOURCE
