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