Subversion Repositories SvarDOS

Rev

Rev 1768 | Rev 1770 | 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)
1761 mateusz.vi 3
# Copyright (C) 2023-2024 Mateusz Viste
1275 mateusz.vi 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
 
1761 mateusz.vi 13
PVER = 2024.0
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
1768 mateusz.vi 35
	echo version: $(PVER)> appinfo\sved.lsm
36
	echo description: SvarDOS text editor>> appinfo\sved.lsm
1769 mateusz.vi 37
	echo @ECHO There is no EDIT on this system. Use SVED instead.> bin\edit.bat
1387 mateusz.vi 38
	zip -9rkDX -m sved.svp bin appinfo doc
1368 mateusz.vi 39
	rmdir doc\sved
40
	rmdir doc
41
	rmdir bin
42
	rmdir appinfo
43
 
1387 mateusz.vi 44
# "normal" DOS distribution, ie. bunch of binaries in a zip file
45
sved.zip: sved.com
46
	IF EXIST SVED.ZIP DEL SVED.ZIP
47
	zip -9rkDX sved.zip sved.com sved.lng sved.txt
48
 
49
# source package (no binaries)
50
sved_src.zip:
51
	IF EXIST SVED_SRC.ZIP DEL SVED_SRC.ZIP
1583 mateusz.vi 52
	zip -9rkDX sved_src.zip *.txt *.asm *.c *.h *.lng makefile mdr nls svarlang
1387 mateusz.vi 53
 
54
release: sved.svp sved.zip sved_src.zip .symbolic
55
 
1275 mateusz.vi 56
clean: .symbolic
57
	del *.obj
1387 mateusz.vi 58
	del sved.com