-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile.w16
115 lines (97 loc) · 2.52 KB
/
makefile.w16
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# DOOMTDWC.EXE makefile
# --------------------------------------------------------------------------
#
# 0 use 8088 instructions
# 2 use 286 instructions
# 3 use 386 instructions
# bt build target
# c compile only
# d1 include line number debugging information
# d2 include full sybolic debugging information
# ei force enums to be of type int
# j change char default from unsigned to signed
# mm medium memory model
# ml large memory model
# mh huge memory model
# oa relax aliasing checking
# od do not optimize
# oe[=#] expand functions inline, # = quads (default 20)
# oh repeated optimizations
# oi use the inline library functions
# ol+ loop optimizations, inclusing loop unrolling
# os optimize for space
# ot optimize for time
# ox maximum optimization
# s remove stack overflow checks
# wx maximum warning level
# zp1 align structures on bytes
# zq use quiet mode
# /i=dir add include directories
#
# --------------------------------------------------------------------------
#CCOPTSS = -oaxes -oh -ol+ -zp1 -bt=dos -0 -j -zq -s -mm -wx -za99
#CCOPTST = -oaxet -oh -ol+ -zp1 -bt=dos -0 -j -zq -s -mm -wx -za99
CCOPTSS = -oaxes -oh -ol+ -zp1 -bt=dos -2 -j -zq -s -mm -wx -za99
CCOPTST = -oaxet -oh -ol+ -zp1 -bt=dos -2 -j -zq -s -mm -wx -za99
!ifdef __LINUX__
OUTPUT = WC16/$^&.obj
!else
OUTPUT = WC16\$^&
!endif
GLOBOBJS = &
d_items.obj &
d_main.obj &
g_game.obj &
i_ibm.obj &
info.obj &
m_random.obj &
p_doors.obj &
p_enemy.obj &
p_floor.obj &
p_inter.obj &
p_lights.obj &
p_map.obj &
p_maputl.obj &
p_mobj.obj &
p_plats.obj &
p_pspr.obj &
p_scroll.obj &
p_setup.obj &
p_sight.obj &
p_spec.obj &
p_switch.obj &
p_tick.obj &
p_user.obj &
r_data.obj &
r_draw.obj &
r_things.obj &
st_stuff.obj &
tables.obj &
v_video.obj &
w_wad.obj &
z_zone.obj
WC16/DOOMTDWC.EXE : $(GLOBOBJS)
cd WC16
wlink @../wc16doom.lnk
cd..
.obj : WC16
.c.obj :
wcc $(CCOPTSS) $[* -fo=$(OUTPUT)
i_ibm.obj : i_ibm.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)
p_map.obj : p_map.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)
p_maputl.obj : p_maputl.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)
p_mobj.obj : p_mobj.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)
p_sight.obj : p_sight.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)
r_draw.obj : r_draw.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)
tables.obj : tables.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)
w_wad.obj : w_wad.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)
z_zone.obj : z_zone.c
wcc $(CCOPTST) $[* -fo=$(OUTPUT)