]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - BSDmakefile
Implement XMP module sound support
[xonotic/darkplaces.git] / BSDmakefile
index 0c5e55cc47dff9c249cdcd3e5eb1d73c2b05c336..338293fa73b83f1f8c12b5589fde3aeb46d2c331 100644 (file)
@@ -28,6 +28,7 @@ DP_LINK_JPEG?=shared
 DP_LINK_ODE?=dlopen
 DP_LINK_CRYPTO?=dlopen
 DP_LINK_CRYPTO_RIJNDAEL?=dlopen
+DP_LINK_XMP?=dlopen
 
 ###### Optional features #####
 DP_VIDEO_CAPTURE?=enabled
@@ -112,6 +113,17 @@ LIB_CRYPTO_RIJNDAEL=
 CFLAGS_CRYPTO_RIJNDAEL=
 .endif
 
+# xmp
+.if $(DP_LINK_XMP) == "shared"
+OBJ_SND_XMP=snd_xmp.o
+LIB_SND_XMP=-lxmp
+CFLAGS_SND_XMP=-DUSEXMP -DLINK_TO_LIBXMP
+.else
+OBJ_SND_XMP=snd_xmp.o
+LIB_SND_XMP=
+CFLAGS_SND_XMP=-DUSEXMP
+.endif
+
 .endif