summaryrefslogtreecommitdiff
path: root/build/ref_gl.mk
blob: 0de7bd980d8f58b5bc8ddfd5fd75197c16277b49 (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
# -----------------------------
# q2pro makefile by [SkulleR]
# -----------------------------

include ../config.mk

TARGET=../ref_gl$(LIBSUFFIX)

LDFLAGS+=-lm -shared
CFLAGS+=-DOPENGL_RENDERER=1 -DTRUECOLOR_RENDERER=1

ifdef USE_JPEG
LDFLAGS+=$(JPEG_LDFLAGS)
CFLAGS+=$(JPEG_CFLAGS)
endif

ifdef USE_PNG
LDFLAGS+=$(PNG_LDFLAGS)
CFLAGS+=$(PNG_CFLAGS)
endif

ifdef MINGW
RESFILES+=ref_gl.rc
else
CFLAGS+=-fPIC
LDFLAGS+=-fPIC
endif

SRCFILES=q_shared.c \
	   r_images.c  \
	   r_bsp.c \
	   gl_draw.c   \
	   gl_images.c  \
	   gl_models.c \
	   gl_world.c \
	   gl_mesh.c \
	   gl_main.c  \
	   gl_state.c  \
	   gl_surf.c  \
	   gl_tess.c   \
	   gl_sky.c   \
	   qgl_api.c

ifdef USE_ASM
ASMFILES=math.s
endif

include $(SRCDIR)/build/target.mk