# 
# Copyright (C) 1999, 2000, 2001  Network Associates, Incorporated (NAI)
# All rights reserved.
#
# This file is part of the NAI Generic Software Wrappers Toolkit
# (GSWTK).  See ftp://ftp.tislabs.com/pub/wrappers/ for the latest
# distribution.
#
# The GSWTK 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.
#
# The GSWTK 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 software; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#

TOPDIR = ../..

include ${TOPDIR}/mak/config.mak

KERNEL_SOURCE	= yes

CFLAGS	+= -D_WSS -Wall -O2
CFLAGS	+= -I ${TOPDIR}/wss/include -I ${TOPDIR}/wsi/${BUILDDIR}/include

LIB	= wsi
OBJS	= loader.o wsi_intercept.o wsi_dispatch.o wsi_wrctl.o \
	  wsi_malloc.o wsi_module.o wsi_vm.o wsi_wrv.o wsi_utilities.o \
	  wsi_custom.o wsi_hook.o wsi_process.o wsi_execve.o \
	  wsi_path.o wsi_time.o wsi_os.o wsi_file.o wsi_log.o wsi_exported.o

LDFLAGS	= -Lwss -lwss

BUILDPLATFORM = Skel

SUBDIR	= include

CLEANFILES = wsi_intercept.c core

.c.o:
	$(COMPILE.c) $<
	cp $@ ${TOPDIR}/${WSSTARGETDIR}

include ${TOPDIR}/mak/library.mak

wsi_intercept.c: parsesyscall.pl
	./parsesyscall.pl

