]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - makefile.bsd
04821ddb67a9aacc18c11bd4b69e219c325b343f
[xonotic/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
9
10 # Command used to delete files
11 CMD_RM=$(CMD_UNIXRM)
12
13 # FIXME: should support lib64 based on uname -m output
14 UNIX_X11LIBPATH=-L/usr/X11R6/lib
15
16 # BSD configuration
17 .if $(DP_MAKE_TARGET) == "bsd"
18
19 OBJ_SOUND=$(OBJ_BSDSOUND)
20 LIB_SOUND=$(LIB_BSDSOUND)
21 OBJ_CD=$(OBJ_BSDCD)
22
23 OBJ_CL=$(OBJ_GLX)
24
25 LDFLAGS_CL=$(LDFLAGS_BSDCL)
26 LDFLAGS_SV=$(LDFLAGS_BSDSV)
27
28 EXE_CL=$(EXE_UNIXCL)
29 EXE_SV=$(EXE_UNIXSV)
30 EXE_SDL=$(EXE_UNIXSDL)
31
32 .endif
33
34
35 ##### BSD Make specific definitions #####
36
37 MAKE:=$(MAKE) -f makefile.bsd
38
39 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
40
41
42 ##### Definitions shared by all makefiles #####
43 .include "makefile.inc"
44
45
46 ##### Dependency files #####
47
48 DEPEND_FILES != ls *.d
49 .for i in $(DEPEND_FILES)
50 .       include "$i"
51 .endfor