# 
# 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.16 2001/04/06 17:29:26 stevek Exp $

TOPDIR = ../..

include ${TOPDIR}/mak/config.mak

PROG		= wrd
OBJS		= main${OBJ}
INSTALLSBIN	= yes

UNIX_CFLAGS += -Wall -g
UNIX_CXXFLAGS += -Wall -g

CXXFLAGS += -I${TOPDIR}/wr.lib/libcrit -I${TOPDIR}/wr.lib/libwrmod
CXXFLAGS += -I${TOPDIR}/wsi/${BUILDDIR}/include
CXXFLAGS += -I${TOPDIR}/wr.lib/libwdl -I${TOPDIR}/wr.lib/libre
CFLAGS += -I${TOPDIR}/wr.lib/libcrit -I${TOPDIR}/wr.lib/libwrmod
CFLAGS += -I${TOPDIR}/wsi/${BUILDDIR}/include

WINNT_CXXFLAGS += /GX -I${TOPDIR}/wr.lib/libgwmcomm

LDCC = g++

WINNT_LDLIBS	+= ${TOPDIR}/wr.lib/libwrmod/${LIBPRFX}wrmod${LIBEXT}
WINNT_LDLIBS	+= ${TOPDIR}/wr.lib/libcrit/${LIBPRFX}crit${LIBEXT}
WINNT_LDLIBS	+= ${TOPDIR}/wr.lib/libre/${LIBPRFX}re${LIBEXT}
WINNT_LDLIBS	+= ${TOPDIR}/wr.lib/libgwmcomm/${LIBPRFX}gwmcomm${LIBEXT}

UNIX_LDFLAGS	= -L${TOPDIR}/wr.lib/libwrmod -L${TOPDIR}/wr.lib/libcrit 
UNIX_LDFLAGS	+= -L${TOPDIR}/wr.lib/libre
UNIX_LDLIBS	+= -lwrmod -lcrit -lre

PROGDEPENDS += ${TOPDIR}/wr.lib/libwrmod/${LIBPRFX}wrmod${LIBEXT}
PROGDEPENDS += ${TOPDIR}/wr.lib/libcrit/${LIBPRFX}crit${LIBEXT}
PROGDEPENDS += ${TOPDIR}/wr.lib/libre/${LIBPRFX}re${LIBEXT}

include ${TOPDIR}/mak/prog.mak

