# top level makefile for ptc-dos-2.0.0

version=2.0.0

.silent

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

all : debug release examples .SYMBOLIC

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

release : .SYMBOLIC
        cd source
        wmake /h config=release
        cd hermes
        wmake /h config=release $(ASMFLAG)
        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 ..

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

dist : clobber .SYMBOLIC
        if exist yawn.zip del yawn.zip
        if exist ptc-dos-$(version).zip del ptc-dos-$(version).zip
        pkzip -ex -r -p yawn *.*
        ren yawn.zip ptc-dos-$(version).zip
