use dynamic eye position-centered bouncegrid when rendering in dynamic
[xonotic/darkplaces.git] / BSDmakefile
1 #####  DP_MAKE_TARGET autodetection and arch specific variables #####
2
3 .ifndef DP_MAKE_TARGET
4
5 DP_MAKE_TARGET=bsd
6
7 .endif
8 DP_ARCH != uname
9
10 # Command used to delete files
11 CMD_RM=$(CMD_UNIXRM)
12
13 UNIX_X11LIBPATH=/usr/X11R6/lib
14
15 # BSD configuration
16 .if $(DP_MAKE_TARGET) == "bsd"
17
18 # FreeBSD uses OSS
19 .if $(DP_ARCH) == "FreeBSD"
20 DEFAULT_SNDAPI=OSS
21 .else
22 DEFAULT_SNDAPI=BSD
23 .endif
24 OBJ_CD=$(OBJ_BSDCD)
25
26 OBJ_CL=$(OBJ_GLX)
27 OBJ_ICON=
28 OBJ_ICON_NEXUIZ=
29
30 LDFLAGS_CL=$(LDFLAGS_BSDCL)
31 LDFLAGS_SV=$(LDFLAGS_BSDSV)
32 LDFLAGS_SDL=$(LDFLAGS_BSDSDL)
33
34 SDLCONFIG_CFLAGS=$(SDLCONFIG_UNIXCFLAGS) $(SDLCONFIG_UNIXCFLAGS_X11)
35 SDLCONFIG_LIBS=$(SDLCONFIG_UNIXLIBS) $(SDLCONFIG_UNIXLIBS_X11)
36 SDLCONFIG_STATICLIBS=$(SDLCONFIG_UNIXSTATICLIBS) $(SDLCONFIG_UNIXSTATICLIBS_X11)
37
38 EXE_CL=$(EXE_UNIXCL)
39 EXE_SV=$(EXE_UNIXSV)
40 EXE_SDL=$(EXE_UNIXSDL)
41 EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
42 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
43 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
44
45 # libjpeg dependency (set these to "" if you want to use dynamic loading instead)
46 CFLAGS_LIBJPEG=-DLINK_TO_LIBJPEG
47 LIB_JPEG=-ljpeg
48
49 .endif
50
51
52 ##### Sound configuration #####
53
54 .ifndef DP_SOUND_API
55 DP_SOUND_API=$(DEFAULT_SNDAPI)
56 .endif
57
58 # NULL: no sound
59 .if $(DP_SOUND_API) == "NULL"
60 OBJ_SOUND=$(OBJ_SND_NULL)
61 LIB_SOUND=$(LIB_SND_NULL)
62 .endif
63
64 # OSS: Open Sound System
65 .if $(DP_SOUND_API) == "OSS"
66 OBJ_SOUND=$(OBJ_SND_OSS)
67 LIB_SOUND=$(LIB_SND_OSS)
68 .endif
69
70 # BSD: BSD / Sun audio API
71 .if $(DP_SOUND_API) == "BSD"
72 OBJ_SOUND=$(OBJ_SND_BSD)
73 LIB_SOUND=$(LIB_SND_BSD)
74 .endif
75
76
77 ##### Extra CFLAGS #####
78
79 CFLAGS_MAKEDEP=-MD
80 .ifdef DP_FS_BASEDIR
81 CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
82 .else
83 CFLAGS_FS=
84 .endif
85
86 CFLAGS_PRELOAD=
87 .ifdef DP_PRELOAD_DEPENDENCIES
88 LDFLAGS_CL+=$(LDFLAGS_UNIXCL_PRELOAD)
89 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
90 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
91 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
92 .endif
93
94
95 ##### BSD Make specific definitions #####
96
97 MAKE:=$(MAKE) -f BSDmakefile
98
99 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
100
101
102 ##### Definitions shared by all makefiles #####
103 .include "makefile.inc"