forked from jhhoward/MicroWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (56 loc) · 1.91 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
bin = MicroWeb.exe
SRC_PATH = src
OBJDIR=obj
objects = MicroWeb.obj App.obj Parser.obj Render.obj Tags.obj Platform.obj CGA.obj EGA.obj Hercules.obj TextMode.obj Font.obj Interfac.obj DOSInput.obj DOSNet.obj Page.obj
memory_model = -ml
CC = wpp
CFLAGS = -zq -0 -ot -bt=DOS -w2 $(memory_model)
LD = wlink
# begin mTCP stuff
tcp_h_dir = lib\mTCP\TCPINC\
tcp_c_dir = lib\mTCP\TCPLIB\
tcpobjs = packet.obj arp.obj eth.obj ip.obj tcp.obj tcpsockm.obj udp.obj utils.obj dns.obj timer.obj ipasm.obj trace.obj
tcp_compile_options = -0 $(memory_model) -DCFG_H="tcp.cfg" -oh -ok -ot -s -oa -ei -zp2 -zpw -we -ob -ol+ -oi+
tcp_compile_options += -i=$(tcp_h_dir)
.cpp : $(tcp_c_dir)
.asm : $(tcp_c_dir)
.asm.obj :
wasm -0 $(memory_model) $[*
.cpp.obj :
wpp $[* $(tcp_compile_options)
# end mTCP stuff
$(bin): $(objects) $(tcpobjs)
$(LD) system dos name $@ file { $(objects) $(tcpobjs) }
MicroWeb.obj: $(SRC_PATH)\MicroWeb.cpp
$(CC) -fo=$@ $(CFLAGS) $<
App.obj: $(SRC_PATH)\App.cpp
$(CC) -fo=$@ $(CFLAGS) $<
Parser.obj: $(SRC_PATH)\Parser.cpp
$(CC) -fo=$@ $(CFLAGS) $<
Render.obj: $(SRC_PATH)\Render.cpp
$(CC) -fo=$@ $(CFLAGS) $<
Tags.obj: $(SRC_PATH)\Tags.cpp
$(CC) -fo=$@ $(CFLAGS) $<
Page.obj: $(SRC_PATH)\Page.cpp
$(CC) -fo=$@ $(CFLAGS) $<
Platform.obj: $(SRC_PATH)\DOS\Platform.cpp
$(CC) -fo=$@ $(CFLAGS) $<
Font.obj: $(SRC_PATH)\Font.cpp
$(CC) -fo=$@ $(CFLAGS) $<
Interfac.obj: $(SRC_PATH)\Interfac.cpp
$(CC) -fo=$@ $(CFLAGS) $<
CGA.obj: $(SRC_PATH)\DOS\CGA.cpp
$(CC) -fo=$@ $(CFLAGS) $<
Hercules.obj: $(SRC_PATH)\DOS\Hercules.cpp
$(CC) -fo=$@ $(CFLAGS) $<
EGA.obj: $(SRC_PATH)\DOS\EGA.cpp
$(CC) -fo=$@ $(CFLAGS) $<
TextMode.obj: $(SRC_PATH)\DOS\TextMode.cpp
$(CC) -fo=$@ $(CFLAGS) $<
DOSInput.obj: $(SRC_PATH)\DOS\DOSInput.cpp
$(CC) -fo=$@ $(CFLAGS) $<
DOSNet.obj: $(SRC_PATH)\DOS\DOSNet.cpp
$(CC) -fo=$@ $(CFLAGS) -i=$(tcp_h_dir) -DCFG_H="tcp.cfg" $<
clean: .symbolic
del *.obj
del $(bin)