-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMAKEFILE
More file actions
54 lines (43 loc) · 1.71 KB
/
MAKEFILE
File metadata and controls
54 lines (43 loc) · 1.71 KB
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
# =============================================================================
# Project makefile
# =============================================================================
# Settings
main_objs = main.obj init.obj utils.obj config.obj mm.obj
renderer_objs = vec.obj ray.obj renderer.obj sphere.obj object.obj scene.obj cam.obj hit.obj triangle.obj aabb.obj
material_objs = mat.obj lmbrtian.obj metal.obj unlit.obj emissive.obj glass.obj
texture_objs = solid.obj texture.obj tiles.obj image.obj uv.obj
output_objs = bmp.obj video.obj
gui_objs = mouse.obj gui.obj keyb.obj
input_objs = bmpread.obj objload.obj sloader.obj
# keyb?
testobjs = init.obj test.obj utils.obj vec.obj ray.obj
objs = $(main_objs) $(renderer_objs) $(material_objs) $(texture_objs) $(output_objs) $(gui_objs) $(input_objs)
dest = raytracer.exe
# ===========================================g==================================
# Do NOT edit this section, unless you know what you are doing.
# =============================================================================
.asm: rt/
.asm: rt/mat/
.asm: rt/texture/
.asm: output/
.asm: gui/
.asm: input/
.asm.obj:
tasm /ml /m2 /w2 /z /zi /p /jIDEAL $<
$(dest): $(objs)
# wlink option quiet system pmodew name $@ file {$(objs)}
wlink option quiet system pmodew name $@ file *.obj
tests: $(testobjs) .symbolic
wlink option quiet system pmodew name tests.exe file *.obj
clean: .symbolic
del *.obj
del tests.exe
del $(dest)
.silent
debug: $(objs) .symbolic
wlink debug watcom lines option Q,C system pmodew name $(dest) file *.obj
wd /tr=rsi /li=43 $(dest)
.silent
debugtests: $(testobjs) .symbolic
wlink debug watcom lines option Q,C system pmodew name tests.exe file *.obj
wd /tr=rsi /li=43 tests.exe