]> icculus.org git repositories - divverent/darkplaces.git/blob - makefile.bsd
-Fixed another bug introduced by me, affecting the detection of a valid
[divverent/darkplaces.git] / makefile.bsd
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 # BSD configuration
15 .if $(DP_MAKE_TARGET) == "bsd"
16
17 # FreeBSD uses OSS
18 .if $(DP_ARCH) == "FreeBSD"
19 OBJ_SOUND=$(OBJ_OSSSOUND)
20 LIB_SOUND=$(LIB_OSSSOUND)
21 .else
22 OBJ_SOUND=$(OBJ_BSDSOUND)
23 LIB_SOUND=$(LIB_BSDSOUND)
24 .endif
25 OBJ_CD=$(OBJ_BSDCD)
26
27 OBJ_CL=$(OBJ_GLX)
28
29 LDFLAGS_CL=$(LDFLAGS_BSDCL)
30 LDFLAGS_SV=$(LDFLAGS_BSDSV)
31
32 EXE_CL=$(EXE_UNIXCL)
33 EXE_SV=$(EXE_UNIXSV)
34 EXE_SDL=$(EXE_UNIXSDL)
35
36 .endif
37
38
39 ##### BSD Make specific definitions #####
40
41 MAKE:=$(MAKE) -f makefile.bsd
42
43 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
44
45
46 ##### Definitions shared by all makefiles #####
47 .include "makefile.inc"
48
49
50 ##### Dependency files #####
51
52 DEPEND_FILES != ls *.d
53 .for i in $(DEPEND_FILES)
54 .       include "$i"
55 .endfor