]> icculus.org git repositories - divverent/darkplaces.git/blob - makefile.bsd
no longer warns about q3bsp surfaces with lightmapindex -3 (or any other negative...
[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
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 # FreeBSD uses OSS
20 .if exists(/usr/include/sys/soundcard.h)
21 OBJ_SOUND=$(OBJ_OSSSOUND)
22 .else
23 OBJ_SOUND=$(OBJ_BSDSOUND)
24 .endif
25 LIB_SOUND=$(LIB_BSDSOUND)
26 OBJ_CD=$(OBJ_BSDCD)
27
28 OBJ_CL=$(OBJ_GLX)
29
30 LDFLAGS_CL=$(LDFLAGS_BSDCL)
31 LDFLAGS_SV=$(LDFLAGS_BSDSV)
32
33 EXE_CL=$(EXE_UNIXCL)
34 EXE_SV=$(EXE_UNIXSV)
35 EXE_SDL=$(EXE_UNIXSDL)
36
37 .endif
38
39
40 ##### BSD Make specific definitions #####
41
42 MAKE:=$(MAKE) -f makefile.bsd
43
44 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
45
46
47 ##### Definitions shared by all makefiles #####
48 .include "makefile.inc"
49
50
51 ##### Dependency files #####
52
53 DEPEND_FILES != ls *.d
54 .for i in $(DEPEND_FILES)
55 .       include "$i"
56 .endfor