Subversion Repositories SvarDOS

Rev

Rev 1577 | Rev 1583 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1275 mateusz.vi 1
#
1431 mateusz.vi 2
# sved's makefile -- requires Open Watcom 1.9 (wmake)
1275 mateusz.vi 3
# Copyright (C) 2023 Mateusz Viste
4
#
1387 mateusz.vi 5
# usage:
6
#   wmake            builds the sved.com binary
7
#   wmake release    builds distribuable packages (svp, zip, sources...)
1275 mateusz.vi 8
 
9
CC = wcc
1556 mateusz.vi 10
CFLAGS = -0 -ms -zl -os -wx -we -d0 -bt=dos -I=mdr\inc
1282 mateusz.vi 11
CFLAGS += -s
1275 mateusz.vi 12
 
1537 mateusz.vi 13
PVER = 2023.5
1453 mateusz.vi 14
 
1387 mateusz.vi 15
all: sved.com
1275 mateusz.vi 16
 
1577 mateusz.vi 17
sved.com: sved.obj deflang.obj
1582 mateusz.vi 18
	wasm -DSTACKSIZE=1024 -DNOSTACKCHECK startup.asm
1556 mateusz.vi 19
	wlink @sved.lnk
1387 mateusz.vi 20
	upx -9 --8086 sved.com
1275 mateusz.vi 21
 
22
.c.obj: .autodepend
23
	$(CC) $(CFLAGS) $*.C
24
 
1387 mateusz.vi 25
# builds a SvarDOS package
26
sved.svp: sved.com
27
	IF EXIST SVED.SVP DEL SVED.SVP
1368 mateusz.vi 28
	mkdir bin
29
	mkdir appinfo
30
	mkdir doc
31
	mkdir doc\sved
1434 mateusz.vi 32
	copy sved.com bin
33
	copy sved.lng bin
34
	copy sved.txt doc\sved
1453 mateusz.vi 35
	echo version: $(PVER) > appinfo\sved.lsm
1368 mateusz.vi 36
	echo description: SvarDOS text editor >> appinfo\sved.lsm
1387 mateusz.vi 37
	zip -9rkDX -m sved.svp bin appinfo doc
1368 mateusz.vi 38
	rmdir doc\sved
39
	rmdir doc
40
	rmdir bin
41
	rmdir appinfo
42
 
1387 mateusz.vi 43
# "normal" DOS distribution, ie. bunch of binaries in a zip file
44
sved.zip: sved.com
45
	IF EXIST SVED.ZIP DEL SVED.ZIP
46
	zip -9rkDX sved.zip sved.com sved.lng sved.txt
47
 
48
# source package (no binaries)
49
sved_src.zip:
50
	IF EXIST SVED_SRC.ZIP DEL SVED_SRC.ZIP
51
	zip -9rkDX sved_src.zip *.txt *.c *.h *.lng makefile mdr nls svarlang
52
 
53
release: sved.svp sved.zip sved_src.zip .symbolic
54
 
1275 mateusz.vi 55
clean: .symbolic
56
	del *.obj
1387 mateusz.vi 57
	del sved.com