Subversion Repositories SvarDOS

Rev

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

Rev Author Line No. Line
1275 mateusz.vi 1
#
2
# sved Makefile -- requires OpenWatcom (wmake)
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
1285 mateusz.vi 10
CFLAGS = -0 -ms -os -wx -we -d0 -I=mdr\inc
1282 mateusz.vi 11
CFLAGS += -s
1387 mateusz.vi 12
LDFLAGS = -lr -mt -fm=edit.map -fe=sved.com
1285 mateusz.vi 13
LDLIBS = svarlang\svarlngs.lib mdr\mdrs2023.lib
1275 mateusz.vi 14
 
1387 mateusz.vi 15
all: sved.com
1275 mateusz.vi 16
 
1387 mateusz.vi 17
sved.com: sved.obj deflang.obj
1282 mateusz.vi 18
	wcl $(LDLIBS) sved.obj deflang.obj $(LDFLAGS)
1387 mateusz.vi 19
	upx -9 --8086 sved.com
1275 mateusz.vi 20
 
21
.c.obj: .autodepend
22
	$(CC) $(CFLAGS) $*.C
23
 
1387 mateusz.vi 24
# builds a SvarDOS package
25
sved.svp: sved.com
26
	IF EXIST SVED.SVP DEL SVED.SVP
1368 mateusz.vi 27
	mkdir bin
28
	mkdir appinfo
29
	mkdir doc
30
	mkdir doc\sved
1387 mateusz.vi 31
	copy sved.com bin\edit.com
32
	copy sved.lng bin\edit.lng
33
	copy sved.txt doc\sved\
1368 mateusz.vi 34
	echo version: 2023.0 > appinfo\sved.lsm
35
	echo description: SvarDOS text editor >> appinfo\sved.lsm
1387 mateusz.vi 36
	zip -9rkDX -m sved.svp bin appinfo doc
1368 mateusz.vi 37
	rmdir doc\sved
38
	rmdir doc
39
	rmdir bin
40
	rmdir appinfo
41
 
1387 mateusz.vi 42
# "normal" DOS distribution, ie. bunch of binaries in a zip file
43
sved.zip: sved.com
44
	IF EXIST SVED.ZIP DEL SVED.ZIP
45
	zip -9rkDX sved.zip sved.com sved.lng sved.txt
46
 
47
# source package (no binaries)
48
sved_src.zip:
49
	IF EXIST SVED_SRC.ZIP DEL SVED_SRC.ZIP
50
	zip -9rkDX sved_src.zip *.txt *.c *.h *.lng makefile mdr nls svarlang
51
 
52
release: sved.svp sved.zip sved_src.zip .symbolic
53
 
1275 mateusz.vi 54
clean: .symbolic
55
	del *.obj
1387 mateusz.vi 56
	del sved.com