.SUFFIXES: .cc .objbj

ARCH        = WINNT-4.0
SHOBJ       = YES
APPNAME = CDEV Utility Applications

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

TARGETS  = $(CDEV)\bin\$(TARGETDIR)\cdevUtil.exe \
           $(CDEV)\bin\$(TARGETDIR)\cddl.exe \
           $(CDEV)\bin\$(TARGETDIR)\uncompile.exe 
BINARIES = $(TARGETS)
CXXEXTRA = -I. -I..\directory

targets: $(CDEVBIN) $(TARGETS)

$(CDEVBIN):
	@mkdir -p $@

$(CDEV)\bin\$(TARGETDIR)\cdevUtil.exe: .exec\$(TARGETDIR)\cdevUtil.obj
	@if not exist $(CDEV)\bin\$(TARGETDIR) mkdir -p $(CDEV)\bin\$(TARGETDIR)
	@$(LINK) \
	$(CDEVLIB)\cdev.lib $(LINK_EXE_FLAGS) /out:$@ \
	.exec\$(TARGETDIR)\cdevUtil.obj

$(CDEV)\bin\$(TARGETDIR)\cddl.exe: .exec\$(TARGETDIR)\cddl.obj
	@if not exist $(CDEV)\bin\$(TARGETDIR) mkdir -p $(CDEV)\bin\$(TARGETDIR)
	@$(LINK) \
	$(CDEVLIB)\cdev.lib $(LINK_EXE_FLAGS) /out:$@ \
	.exec\$(TARGETDIR)\cddl.obj

$(CDEV)\bin\$(TARGETDIR)\uncompile.exe: .exec\$(TARGETDIR)\uncompile.obj
	@if not exist $(CDEV)\bin\$(TARGETDIR) mkdir -p $(CDEV)\bin\$(TARGETDIR)
	@$(LINK) \
	$(CDEVLIB)\cdev.lib $(LINK_EXE_FLAGS) /out:$@ \
	.exec\$(TARGETDIR)\uncompile.obj
