# Watcom C++ top level makefile

version=2_0_8

.silent

#!ifeq asm yes
ASMFLAG = "asm=yes"
#!endif

all : debug release examples .SYMBOLIC

debug : .SYMBOLIC
        cd source
        wmake /h config=debug $(ASMFLAG)
        cd hermes
        wmake /h config=debug $(ASMFLAG)
        copy /q hermes.lib ..\..\library\debug
        cd ..\..

release : .SYMBOLIC
        cd source
        wmake /h config=release $(ASMFLAG)
        cd hermes
        wmake /h config=release $(ASMFLAG)
        copy /q hermes.lib ..\..\library\release
        cd ..\..

examples : .SYMBOLIC
        cd examples
        wmake /h
        cd ..

clean : .SYMBOLIC
        cd source
        wmake /h clean
        cd hermes
        wmake /h clean
        cd ..\..\examples
        wmake /h clean
        cd ..


distclean : .SYMBOLIC
        cd source
        wmake /h distclean
        cd hermes
        wmake /h distclean
        cd ..\..\examples
        wmake /h distclean
	cd ..


# only reason I do it like this is it's the only way around LFN hassles.
dist : .SYMBOLIC
        if exist ptcdos.zip del ptcdos.zip
        if exist ptc-dos-$(version).zip del ptc-dos-$(version).zip
        pkzip -ex -r -p ptcdos *.*
        ren ptcdos.zip ptc-dos-$(version).zip
