Fix setinfo.
[xonotic/darkplaces.git] / BSDmakefile
index eb135ce..b6cebea 100644 (file)
@@ -16,11 +16,11 @@ CMD_CP=$(CMD_UNIXCP)
 CMD_MKDIR=$(CMD_UNIXMKDIR)
 
 # default targets
 CMD_MKDIR=$(CMD_UNIXMKDIR)
 
 # default targets
-TARGETS_DEBUG=sv-debug cl-debug sdl-debug
-TARGETS_PROFILE=sv-profile cl-profile sdl-profile
-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
+TARGETS_DEBUG=sv-debug sdl-debug
+TARGETS_PROFILE=sv-profile sdl-profile
+TARGETS_RELEASE=sv-release sdl-release
+TARGETS_RELEASE_PROFILE=sv-release-profile sdl-release-profile
+TARGETS_NEXUIZ=sv-nexuiz sdl-nexuiz
 
 # Link options
 DP_LINK_ZLIB?=shared
 
 # Link options
 DP_LINK_ZLIB?=shared
@@ -30,15 +30,6 @@ DP_LINK_CRYPTO?=dlopen
 DP_LINK_CRYPTO_RIJNDAEL?=dlopen
 
 ###### Optional features #####
 DP_LINK_CRYPTO_RIJNDAEL?=dlopen
 
 ###### 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
-
 DP_VIDEO_CAPTURE?=enabled
 .if $(DP_VIDEO_CAPTURE) == "enabled"
   CFLAGS_VIDEO_CAPTURE=-DCONFIG_VIDEO_CAPTURE
 DP_VIDEO_CAPTURE?=enabled
 .if $(DP_VIDEO_CAPTURE) == "enabled"
   CFLAGS_VIDEO_CAPTURE=-DCONFIG_VIDEO_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LAGS_CRYPTO_RIJNDAEL=
 .endif
 
 
 .endif
 
 
-##### Sound configuration #####
-
-.ifndef DP_SOUND_API
-DP_SOUND_API=$(DEFAULT_SNDAPI)
-.endif
-
-# NULL: no sound
-.if $(DP_SOUND_API) == "NULL"
-OBJ_SOUND=$(OBJ_SND_NULL)
-LIB_SOUND=$(LIB_SND_NULL)
-.endif
-
-# OSS: Open Sound System
-.if $(DP_SOUND_API) == "OSS"
-OBJ_SOUND=$(OBJ_SND_OSS)
-LIB_SOUND=$(LIB_SND_OSS)
-.endif
-
-# BSD: BSD / Sun audio API
-.if $(DP_SOUND_API) == "BSD"
-OBJ_SOUND=$(OBJ_SND_BSD)
-LIB_SOUND=$(LIB_SND_BSD)
-.endif
-
-
 ##### Extra CFLAGS #####
 
 CFLAGS_MAKEDEP=-MD
 ##### Extra CFLAGS #####
 
 CFLAGS_MAKEDEP=-MD
@@ -165,12 +126,14 @@ CFLAGS_FS=
 
 CFLAGS_PRELOAD=
 .ifdef DP_PRELOAD_DEPENDENCIES
 
 CFLAGS_PRELOAD=
 .ifdef DP_PRELOAD_DEPENDENCIES
-LDFLAGS_CL+=$(LDFLAGS_UNIXCL_PRELOAD)
 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
 .endif
 
 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
 .endif
 
+CFLAGS_NET=
+# Systems without IPv6 support should uncomment this:
+#CFLAGS_NET+=-DNOSUPPORTIPV6
 
 ##### BSD Make specific definitions #####
 
 
 ##### BSD Make specific definitions #####