diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-07-17 00:38:13 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-07-17 00:38:13 +0900 |
commit | e8e5747650626442f8f9940ad5bc37b21ca85ad9 (patch) | |
tree | 1c6a0eae92cd834dfbd4fe6286d4bc24821e10ad /gtk/Makefile.am | |
parent | 44c20e41ddd0c394daf5aa45d88baa95334f04fc (diff) |
soundout autoconf
Diffstat (limited to 'gtk/Makefile.am')
-rw-r--r-- | gtk/Makefile.am | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 43a767d..2375b28 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -19,15 +19,22 @@ FMDSP_SRC=../fmdsp/fmdsp.c \ ../fmdsp/font_fmdsp_small.c \ ../fmdsp/fmdsp_platform_unix.c -SOUNDOUT_SRC=soundout/soundout.c \ - soundout/pulseout.c \ - soundout/jackout.c \ - soundout/alsaout.c +SOUNDOUT_SRC=../soundout/soundout.c + +if ENABLE_JACK +SOUNDOUT_SRC+=../soundout/jackout.c +endif +if ENABLE_PULSE +SOUNDOUT_SRC+=../soundout/pulseout.c +endif +if ENABLE_ALSA +SOUNDOUT_SRC+=../soundout/alsaout.c +endif #fmplayer_CFLAGS=$(CFLAGS) #CFLAGS= fmplayer_CPPFLAGS=-Wall -Wextra -pedantic \ - -I.. -Isoundout \ + -I.. -I../soundout \ $(GTK3_CFLAGS) $(JACK_CFLAGS) $(PULSE_CFLAGS) $(ALSA_CFLAGS) $(SNDFILE_CFLAGS) fmplayer_LDADD=$(GTK3_LIBS) $(JACK_LIBS) $(PULSE_LIBS) $(ALSA_LIBS) $(SNDFILE_LIBS) -lm -lpthread |