.SUFFIXES: .cc .obj

APPNAME        = CDEV Gateway Test Applications
ARCH           = WINNT-4.0
SHOBJ          = YES
OUTPUTDIR      = ..\bin\$(TARGETDIR)
BINARIES       = $(OUTPUTDIR)\TestProgram.exe $(OUTPUTDIR)\monitorTest.exe

include ..\..\..\extensions\cdevGenericServer\include\makeinclude\Makefile.WINNT-4.0

TARGETS        = $(BINARIES)
CXXINCLUDES    = /I .\\ 

targets : $(BINARIES)
		
$(OUTPUTDIR)\TestProgram.exe : .exec\$(TARGETDIR)\TestProgram.obj
	-@if not exist $(OUTPUTDIR) mkdir $(OUTPUTDIR)
	-@if exist $@ erase $@
	@echo ^ ^ ^ ^ ^ ^ =^> Linking $(@F)
	$(LINK) $(CDEVLIB)\cdev.lib $(CDEVLIB)\cdevGenericServer.lib \
	$(LINK_EXE_FLAGS) /out:$@ $? 
	@echo ^ ^ ^ ^ ^ ^ ^ ^ ^ Done...

$(OUTPUTDIR)\monitorTest.exe : .exec\$(TARGETDIR)\monitorTest.obj
	-@if exist $@ erase $@
	@echo ^ ^ ^ ^ ^ ^ =^> Linking $(@F)
	$(LINK) $(CDEVLIB)\cdev.lib $(CDEVLIB)\cdevGenericServer.lib \
	$(LINK_EXE_FLAGS) /out:$@ $? 
	@echo ^ ^ ^ ^ ^ ^ ^ ^ ^ Done...
