# 
# 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.
#
# $Id: Makefile,v 1.32 2001/04/05 18:40:22 stevek Exp $

TOPDIR = ..

include ${TOPDIR}/mak/config.mak

PROG	= gwm
OBJS	= service${OBJ} gwm${OBJ} lwmcomm${OBJ} clientcomm${OBJ} \
	  bufferbuilder${OBJ} debugwin${OBJ} layout${OBJ} gwm.res

INSTALLDIR = ${BINDIR}/services

# INCLUDES += -DDEBUG_LWM_PACKET
#
# If you want the message window to be displayed when
# the GWM is used as a service, uncomment the line below
#INCLUDES += -DGWM_POST_MESSAGE_ALWAYS
#
INCLUDES += -I ${TOPDIR}/toolkits/eventfs/src
INCLUDES += -I ${TOPDIR}/toolkits/eventfs/src/${BUILDDIR}/libs/libpipesrv
INCLUDES += -DPD_IN_KERNEL=1 -DWSSLINKAGE=IMPORT -DLINKAGE=IMPORT
INCLUDES += -DPDLINKAGE=IMPORT -DEFSLINKAGE=IMPORT -DUNICODE -D_UNICODE

LDLIBS += advapi32.lib shell32.lib user32.lib gdi32.lib comctl32.lib
LDLIBS += comdlg32.lib
LDLIBS += ${TOPDIR}/wsl/libwss/wss.lib ${TOPDIR}/wsl/libwrimp/wrimp.lib
LDLIBS += ${TOPDIR}/toolkits/eventfs/src/${BUILDDIR}/libs/libmtsync/${LIBPRFX}mtsync${LIBEXT}
LDLIBS += ${TOPDIR}/toolkits/eventfs/src/${BUILDDIR}/libs/libpipesrv/${LIBPRFX}pipesrv${LIBEXT}
LDLIBS += ${TOPDIR}/toolkits/eventfs/src/${BUILDDIR}/libs/libeventfskernel/${LIBPRFX}eventfskernel${LIBEXT}

PROGDEPENDS += ${TOPDIR}/wsl/libwss/wss.lib ${TOPDIR}/wsl/libwrimp/wrimp.lib
PROGDEPENDS += gwm.res bufferbuilder.h debugwin.h gwm.h gwm_comm.h
PROGDEPENDS += layout.h resource.h service.h
PROGDEPENDS += ${TOPDIR}/toolkits/eventfs/src/${BUILDDIR}/libs/libmtsync/${LIBPRFX}mtsync${LIBEXT}
PROGDEPENDS += ${TOPDIR}/toolkits/eventfs/src/${BUILDDIR}/libs/libpipesrv/${LIBPRFX}pipesrv${LIBEXT}
PROGDEPENDS += ${TOPDIR}/toolkits/eventfs/src/${BUILDDIR}/libs/libeventfskernel/${LIBPRFX}eventfskernel${LIBEXT}

include ${TOPDIR}/mak/prog.mak

gwm.res: gwm.rc gwm.rc2

