####################################################################
#
#		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 09/08/93 Sun Microsystems, Inc.  All Rights Reserved.
#
#	@(#)makefile	1.8 09/08/93 12:56:56
#
####################################################################


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=-g


#	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 include path:
RWINCL=		..

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

#	Base name of the library:
LIBNAME=	lib$(NAME)rwtool$(DBGNAME)

#	Full name (including suffix) of the library:
LIBFULL=	$(LIBDIR)/$(LIBNAME).a

#	Compile/load flags:
CCFLAGS += -I$(RWINCL) $(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

