#*****************************************************************************
# 	        (c) Copyright 1994 Wide Area Information Servers, Inc        *
#	   	                 All rights reserved.    	             *
#									     *
#  This notice is intended as a precaution against inadvertent publication   *
#  and does not constitute an admission or acknowledgement that publication  *
#  has occurred or constitute a waiver of confidentiality.		     *
#									     *
#  Wide Area Information Server software is the proprietary and              *
#  confidential property of Wide Area Information Servers, Inc.              *
#*****************************************************************************

#-pg for performance monitoring
#-O for optimization
#-g for debugging
#-Dmacros for using macros rather than functions in certain inner loops
# RS6000's (xlc) add -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_ALL_SOURCE
# Dell Unix (gcc) add -DDellUnix
# SCO Unix (gcc) add -UM_XENIX -DSCOUnix
# DG Aviion (gcc) add -DDG
# HP/UX (cc) add -Aa -Dhpux -D_INCLUDE_HPUX_SOURCE -D_INCLUDE_POSIX_SOURCE 
#                -D_INCLUDE_XOPEN_SOURCE -D_INCLUDE_AES_SOURCE
#                -DDIRSIZ -DDIRSIZ_MACRO -UUSTUBS_H
# HP/UX (gcc) add -Dhpux

CFLAGS = -g
CC = gcc
AR = ar 
RM = /bin/rm

# Dell unix machine or SCO unix, you must define RANLIB = true
RANLIB = ranlib

# In the demo/Makefile, for the specified platforms, add the following:
# Dec Alpha OSF-1 add to LIBS -lbsd
# Solaris, Dell unix machine, or SCO unix, you must define:
# SOL_LIBS = -lsocket -lnsl

# Start of the Makefile proper:
#-----------------------------------------------------------------------------

all::
	cd src; \
	$(MAKE) CC=$(CC) FLAGS="$(CFLAGS)" RANLIB=$(RANLIB) AR=$(AR) RM=$(RM)
	cd demo; \
	$(MAKE) CC=$(CC) FLAGS="$(CFLAGS)" RM=$(RM)

clean:
	$(RM) -f *~
	$(RM) -f \#*
	cd demo; make $@
	$(RM) -f lib/*.a
	cd src; make $@

