blob: 08a4d89868e1e98599c5eed4e8bb68007d9f4811 (
plain)
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
|
# -----------------------------
# q2pro makefile by [SkulleR]
# -----------------------------
include ../config.mk
TARGET=$(OUTDIR)/ref_soft$(LIBSUFFIX)
LDFLAGS+=-lm -shared
CFLAGS+=-DSOFTWARE_RENDERER
SRCFILES=q_shared.c \
sw_aclip.c \
sw_alias.c \
sw_bsp.c \
sw_draw.c \
sw_edge.c \
sw_image.c \
sw_light.c \
sw_main.c \
sw_misc.c \
sw_model.c \
sw_part.c \
sw_poly.c \
sw_polyse.c \
sw_rast.c \
sw_scan.c \
sw_sprite.c \
sw_surf.c \
sw_sird.c \
r_images.c
ifdef USE_ASM
SRCFILES+=sw_protect.c
ASMFILES=r_aclipa.s \
r_draw16.s \
r_drawa.s \
r_edgea.s \
r_scana.s \
r_spr8.s \
r_surf8.s \
r_varsa.s \
d_polysa.s \
fpu.s \
math.s
endif
ifdef MINGW
RESFILES=ref_soft.rc
else
LDFLAGS+=-fPIC
CFLAGS+=-fPIC
endif
include $(SRCDIR)/build/target.mk
|