-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAKEFILE
executable file
·43 lines (36 loc) · 1.34 KB
/
MAKEFILE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
# Makefile for etherdfs, requires Open Watcom v1.9
# Copyright (C) 2017 Mateusz Viste
#
# http://etherdfs.sourceforge.net
#
all: etherdfs.exe
genmsg.exe: genmsg.c version.h
wcl -y -0 -s -d0 -lr -ms -we -wx -os genmsg.c -fe=genmsg.exe
chint.obj: chint086.asm
wasm -0 chint086.asm -fo=chint.obj -ms
etherdfs.exe: genmsg.exe etherdfs.c chint.obj dosstruc.h globals.h version.h
genmsg.exe
wcl -y -0 -s -d0 -lr -ms -we -wx -k1024 -fm=etherdfs.map -os chint.obj etherdfs.c -fe=etherdfs.exe
upx -9 --8086 etherdfs.exe
# -y ignore the WCL env. variable, if any
# -0 generate code for 8086
# -s disable stack overflow checks
# -d0 don't include debugging information
# -lr compile to a DOS real-mode application
# -ms small memory model
# -we treat all warnings as errors
# -wx set warning level to max
# -k1024 set stack size to 1024 bytes (for the non-resident part)
# -fm= generate a map file
# -os optimize for size
# -fe set output file name
clean: .symbolic
if exist etherdfs.exe del etherdfs.exe
if exist genmsg.exe del genmsg.exe
del *.obj
pkg: .symbolic etherdfs.exe
if exist etherdfs.zip del etherdfs.zip
zip -9 -k etherdfs.zip etherdfs.exe etherdfs.txt history.txt
if exist ethersrc.zip del ethersrc.zip
zip -9 -k ethersrc.zip *.h *.c *.asm *.txt makefile