]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - BSDmakefile
Make cdda optional, server does not need to play music
[xonotic/darkplaces.git] / BSDmakefile
index 74496edcb1c9917d2bb776c694fe64a04d882c9f..61189afef4c2ba38f724e3fdb09bf568ac4ad76f 100644 (file)
@@ -7,7 +7,6 @@ DP_MAKE_TARGET=bsd
 .endif
 DP_ARCH != uname
 
-
 # Makefile name
 MAKEFILE=BSDmakefile
 
@@ -23,6 +22,16 @@ TARGETS_RELEASE=sv-release cl-release sdl-release
 TARGETS_RELEASE_PROFILE=sv-release-profile cl-release-profile sdl-release-profile
 TARGETS_NEXUIZ=sv-nexuiz cl-nexuiz sdl-nexuiz
 
+###### Optional features #####
+DP_CDDA?=enabled
+.if $(DP_CDDA) == "enabled"
+       OBJ_SDLCD=$(OBJ_CD_COMMON) cd_sdl.o
+       OBJ_BSDCD=$(OBJ_CD_COMMON) cd_bsd.o
+.else
+       OBJ_SDLCD=$(OBJ_CD_COMMON) $(OBJ_NOCD)
+       OBJ_BSDCD=$(OBJ_CD_COMMON) $(OBJ_NOCD)
+.endif
+
 # X11 libs
 UNIX_X11LIBPATH=/usr/X11R6/lib