Skip to content
Snippets Groups Projects
Commit 3de37030 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fixups for build changes.

Sneaky hiding extra interesting bits at the end like that. :(
parent 0e009861
No related branches found
No related tags found
No related merge requests found
Pipeline #6740 passed
...@@ -57,7 +57,8 @@ ifndef win ...@@ -57,7 +57,8 @@ ifndef win
XPDEV-MT_CFLAGS += -DHAS_MACHINE_SPKR_H XPDEV-MT_CFLAGS += -DHAS_MACHINE_SPKR_H
XPDEV_CFLAGS += -DHAS_MACHINE_SPKR_H XPDEV_CFLAGS += -DHAS_MACHINE_SPKR_H
endif endif
XPDEV-MT_CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -f /usr/include/sys/soundcard.h ] ; then echo 1 ; elif [ -f /usr/include/soundcard.h ] ; then echo 2 ; elif [ -f /usr/include/linux/soundcard.h ] ; then echo 3 ; else echo 0 ; fi) -I. $(XPDEV_CFLAGS) XPDEV-MT_CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -f /usr/include/sys/soundcard.h ] ; then echo 1 ; elif [ -f /usr/include/soundcard.h ] ; then echo 2 ; elif [ -f /usr/include/linux/soundcard.h ] ; then echo 3 ; else echo 0 ; fi)
XPDEV_CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -f /usr/include/sys/soundcard.h ] ; then echo 1 ; elif [ -f /usr/include/soundcard.h ] ; then echo 2 ; elif [ -f /usr/include/linux/soundcard.h ] ; then echo 3 ; else echo 0 ; fi)
endif endif
# FreeBSD, OpenBSD, NetBSD, Linux, SunOS, and Darwin all have random()/srandom() # FreeBSD, OpenBSD, NetBSD, Linux, SunOS, and Darwin all have random()/srandom()
......
...@@ -15,6 +15,7 @@ ifndef NO_PULSEAUDIO ...@@ -15,6 +15,7 @@ ifndef NO_PULSEAUDIO
endif endif
endif endif
CFLAGS += -I. $(XPDEV_CFLAGS)
ifndef WITHOUT_ALSA_SOUND ifndef WITHOUT_ALSA_SOUND
ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES) ifeq ($(shell if [ -f /usr/include/alsa/asoundlib.h ] ; then echo YES ; fi),YES)
CFLAGS += -DUSE_ALSA_SOUND CFLAGS += -DUSE_ALSA_SOUND
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment