Subversion Repositories SvarDOS

Rev

Rev 1769 | Rev 1775 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#
# sved's makefile -- requires Open Watcom 1.9 (wmake)
# Copyright (C) 2023-2024 Mateusz Viste
#
# usage:
#   wmake            builds the sved.com binary
#   wmake release    builds distribuable packages (svp, zip, sources...)

CC = wcc
CFLAGS = -0 -ms -zl -os -wx -we -d0 -bt=dos -I=mdr\inc
CFLAGS += -s

PVER = 2024.0

all: sved.com

sved.com: sved.obj deflang.obj
        wasm -DSTACKSIZE=1024 -DNOSTACKCHECK startup.asm
        wlink @sved.lnk
        upx -9 --8086 sved.com

deflang.obj: NLS\*_UTF8.TXT
        cd nls
        regen.bat
        cd ..
        $(CC) $(CFLAGS) $*.C

.c.obj: .autodepend
        $(CC) $(CFLAGS) $*.C

# builds a SvarDOS package
sved.svp: sved.com
        IF EXIST SVED.SVP DEL SVED.SVP
        mkdir bin
        mkdir appinfo
        mkdir doc
        mkdir doc\sved
        copy sved.com bin
        copy sved.lng bin
        copy sved.txt doc\sved
        echo version: $(PVER)> appinfo\sved.lsm
        echo description: SvarDOS text editor>> appinfo\sved.lsm
        echo @ECHO There is no EDIT on this system. Use SVED instead.> bin\edit.bat
        zip -9rkDX -m sved.svp bin appinfo doc
        rmdir doc\sved
        rmdir doc
        rmdir bin
        rmdir appinfo

# "normal" DOS distribution, ie. bunch of binaries in a zip file
sved.zip: sved.com
        IF EXIST SVED.ZIP DEL SVED.ZIP
        zip -9rkDX sved.zip sved.com sved.lng sved.txt

# source package (no binaries)
sved_src.zip:
        IF EXIST SVED_SRC.ZIP DEL SVED_SRC.ZIP
        zip -9rkDX sved_src.zip *.txt *.asm *.c *.h *.lng makefile mdr nls svarlang

release: sved.svp sved.zip sved_src.zip .symbolic

clean: .symbolic
        del *.obj
        del sved.com