]> icculus.org git repositories - divverent/darkplaces.git/blob - BSDmakefile
undo something not meant to be committed yet
[divverent/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
11 # Command used to delete files
12 CMD_RM=$(CMD_UNIXRM)
13
14 UNIX_X11LIBPATH=/usr/X11R6/lib
15
16 # BSD configuration
17 .if $(DP_MAKE_TARGET) == "bsd"
18
19 # FreeBSD uses OSS
20 .if $(DP_ARCH) == "FreeBSD"
21 DEFAULT_SNDAPI=OSS
22 .else
23 DEFAULT_SNDAPI=BSD
24 .endif
25 OBJ_CD=$(OBJ_BSDCD)
26
27 OBJ_CL=$(OBJ_GLX)
28 OBJ_ICON=
29 OBJ_ICON_NEXUIZ=
30
31 LDFLAGS_CL=$(LDFLAGS_BSDCL)
32 LDFLAGS_SV=$(LDFLAGS_BSDSV)
33 LDFLAGS_SDL=$(LDFLAGS_BSDSDL)
34
35 EXE_CL=$(EXE_UNIXCL)
36 EXE_SV=$(EXE_UNIXSV)
37 EXE_SDL=$(EXE_UNIXSDL)
38 EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
39 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
40 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
41
42 .endif
43
44
45 ##### Sound configuration #####
46
47 .ifndef DP_SOUND_API
48 DP_SOUND_API=$(DEFAULT_SNDAPI)
49 .endif
50
51 # NULL: no sound
52 .if $(DP_SOUND_API) == "NULL"
53 OBJ_SOUND=$(OBJ_SND_NULL)
54 LIB_SOUND=$(LIB_SND_NULL)
55 .endif
56
57 # OSS: Open Sound System
58 .if $(DP_SOUND_API) == "OSS"
59 OBJ_SOUND=$(OBJ_SND_OSS)
60 LIB_SOUND=$(LIB_SND_OSS)
61 .endif
62
63 # BSD: BSD / Sun audio API
64 .if $(DP_SOUND_API) == "BSD"
65 OBJ_SOUND=$(OBJ_SND_BSD)
66 LIB_SOUND=$(LIB_SND_BSD)
67 .endif
68
69
70 ##### BSD Make specific definitions #####
71
72 MAKE:=$(MAKE)
73
74 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
75
76
77 ##### Definitions shared by all makefiles #####
78 .include "makefile.inc"
79
80
81 ##### Dependency files #####
82
83 DEPEND_FILES != ls *.d
84 .for i in $(DEPEND_FILES)
85 .       include "$i"
86 .endfor