####################################################################
#
#		M A K E F I L E
#
#	Makefile for the Tools.h++ examples
#
#	Copyright (C) 1992
#
#	Rogue Wave Software, Inc.
#	P.O. Box 2328
#	Corvallis, OR 97339
#	Voice: 503-754-3010  FAX: 503-757-7350
#  
#	Copyright 12 Sep 1996 Sun Microsystems, Inc.  All Rights Reserved.
#
#	@(#)makefile	1.9 12 Sep 1996 12:19:20
#
####################################################################


CCC=	CC

#	The following two lines should be uncommented in order
#	to use a "debug" version of the library:
#DBG=		-DRWDEBUG=1
#DBGNAME=	g

#	The following two lines should be uncommented in order
#	to use a "memory check" version of the library:
#DBG=		$(DBG) -DRWMEMCK=1
#DBGNAME=	g

#	Options to be passed to your C++ compiler:
CCOPTIONS=-O


#	If you are using a special "named" version of the
#	library, you may want to set this:
NAME=


##################################################################
#
#	From here on, it's pretty much boilerplate.
#
##################################################################


RM=		rm -f

#	Where the library is located:
LIBDIR=		../lib

#	Rogue Wave header file directory:
RWDIR=		../rw

#	Full name (including suffix) of the library:
LIBFULL= -library=rwtools6

#	Compile/load flags:
CCFLAGS += $(CCOPTIONS) $(FPFLAG) $(DBG)
LDLIBS += $(LIBFULL)

########################   Executables    #######################

EXAMPLES=	example1 example2 example3 example4 example5 \
		example6 example7 example8 example9 bus \
		tpdlist tvdlist i18n rpcsvc rpcclnt

##########################    Targets    ########################

.KEEP_STATE:

rpcsvc rpcclnt := LDLIBS += -lnsl

all:	$(EXAMPLES)

clean:
	$(RM) *.o
	$(RM) *.i
	$(RM) $(EXAMPLES)
	$(RM) *.dat

