#############################################################################
# A Sample Makefile for building new applications using CAVERNsoft                                  #
# This Makefile shows you how to compile and link a program test.cxx                                    #
#############################################################################
# Select the thread library pthreads or windowsthreads
#CAVERN_USE_THREADS_TYPE can be 'CAVERN_USE_WINDOWSTHREADS' or 'CAVERN_USE_PTHREADS'
#CAVERN_THREAD_TYPE can be 'windowsthreads' or 'pthreads'
#############################################################################

CAVERN_USE_THREADS_TYPE=CAVERN_USE_WINDOWSTHREADS
CAVERN_THREAD_TYPE = windowsthreads

#############################################################################
#Include the location of the file CAVERN_APPLICATION_INCLUDES.WIN32                  #
#this file will be located in the deplyment directory                                                                   #
#Make sure that the DISTRIB_DIR environment variable points to the deployment directory#
#############################################################################

include D:\CAVERNG2\CAVERN_APPLICATION_INCLUDES.WIN32

DIRT= *.obj *.*~ test.exe *.bak

#############################################################################

all:
 nmake -f makefile.win32 test.exe

clean:
 del $(DIRT)

test.exe:test.obj
        CL /W3 /MT /Fetest.exe test.obj $(CAVERN_LIB) WSOCK32.LIB
 

.SUFFIXES: .cxx
.cxx.obj:
 CL /c $(CAVERN_CFLAGS) $<