-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAKEFILE
executable file
·60 lines (47 loc) · 1.17 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
target_config = debug
target_name = dgl
object_files = &
dglblit.obj &
dglblita.obj &
dglclip.obj &
dgl.obj &
dgldraw.obj &
dgldrawa.obj &
dglevent.obj &
dglgfx.obj &
dglpal.obj &
dglkbrd.obj &
dglmath.obj &
dglfixp.obj &
dglmouse.obj &
dglpcx.obj &
dglutil.obj
cc_flags_debug = /d2 /zp4 /5r /fp3 /j
cc_flags_release = /d1+ /zp4 /5r /fp3 /onatx /oe=40 /j
cc_flags = /mf $(cc_flags_$(target_config))
link_flags_debug = debug all
link_flags_release = debug all
link_flags = $(link_flags_$(target_config))
asm_flags_debug = /zi
asm_flags_release = /zi
asm_flags = /m /ml $(asm_flags_$(target_config))
.c.obj: .AUTODEPEND
wcc386 $[. /zq $(cc_flags)
.asm.obj: .AUTODEPEND
tasm $[. /t $(asm_flags)
$(target_name).lbc: $(object_files)
%create $^@
@for %i in ($(object_files)) do %append $^@ +%i
$(target_name).lib: $(object_files) $(target_name).lbc
wlib /n /q /b $(target_name).lib @$(target_name).lbc
clean : .SYMBOLIC
del *.obj
del *.err
del $(target_name).exe
del $(target_name).lib
del $(target_name).lnk
del $(target_name).lbc
.NOCHECK
build : $(target_name).lib
.NOCHECK
library : $(target_name).lib