Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1386 → Rev 1387

/sved/trunk/makefile
2,38 → 2,55
# sved Makefile -- requires OpenWatcom (wmake)
# Copyright (C) 2023 Mateusz Viste
#
# usage:
# wmake builds the sved.com binary
# wmake release builds distribuable packages (svp, zip, sources...)
 
CC = wcc
CFLAGS = -0 -ms -os -wx -we -d0 -I=mdr\inc
CFLAGS += -s
LDFLAGS = -lr -mt -fm=edit.map -fe=edit.com
LDFLAGS = -lr -mt -fm=edit.map -fe=sved.com
LDLIBS = svarlang\svarlngs.lib mdr\mdrs2023.lib
 
all: edit.com
all: sved.com
 
edit.com: sved.obj deflang.obj
sved.com: sved.obj deflang.obj
wcl $(LDLIBS) sved.obj deflang.obj $(LDFLAGS)
upx -9 --8086 edit.com
upx -9 --8086 sved.com
 
.c.obj: .autodepend
$(CC) $(CFLAGS) $*.C
 
pkg: edit.com .symbolic
# 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 edit.com bin
copy edit.lng bin
copy sved.txt doc\sved
copy sved.com bin\edit.com
copy sved.lng bin\edit.lng
copy sved.txt doc\sved\
echo version: 2023.0 > appinfo\sved.lsm
echo description: SvarDOS text editor >> appinfo\sved.lsm
zip -9rkDX -m sved.zip bin appinfo doc
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 *.c *.h *.lng makefile mdr nls svarlang
 
release: sved.svp sved.zip sved_src.zip .symbolic
 
clean: .symbolic
del *.obj
del edit.com
del sved.com