Commit 7aac6cb17b7320faf0483f39f20dc52adc379957

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent ef7635ec

make fmod also use FMOD_{LIBS,CFLAGS}

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Makefile
... ... @@ -124,7 +124,7 @@ ifdef CONFIG_COREAUDIO
124 124 AUDIO_PT = y
125 125 endif
126 126 ifdef CONFIG_FMOD
127   -audio/audio.o audio/fmodaudio.o: CPPFLAGS := -I$(CONFIG_FMOD_INC) $(CPPFLAGS)
  127 +audio/audio.o audio/fmodaudio.o: CPPFLAGS := $(FMOD_CFLAGS) $(CPPFLAGS)
128 128 endif
129 129 ifdef CONFIG_ESD
130 130 AUDIO_PT = y
... ...
Makefile.target
... ... @@ -437,7 +437,7 @@ ifdef CONFIG_DSOUND
437 437 LIBS += -lole32 -ldxguid
438 438 endif
439 439 ifdef CONFIG_FMOD
440   -LIBS += $(CONFIG_FMOD_LIB)
  440 +LIBS += $(FMOD_LIBS)
441 441 endif
442 442 ifdef CONFIG_OSS
443 443 LIBS += $(CONFIG_OSS_LIB)
... ...
configure
... ... @@ -1636,8 +1636,8 @@ for drv in $audio_drv_list; do
1636 1636 def=CONFIG_`echo $drv | tr '[:lower:]' '[:upper:]'`
1637 1637 echo "$def=y" >> $config_host_mak
1638 1638 if test "$drv" = "fmod"; then
1639   - echo "CONFIG_FMOD_LIB=$fmod_lib" >> $config_host_mak
1640   - echo "CONFIG_FMOD_INC=$fmod_inc" >> $config_host_mak
  1639 + echo "FMOD_LIBS=$fmod_lib" >> $config_host_mak
  1640 + echo "FMOD_CFLAGS=-I$fmod_inc" >> $config_host_mak
1641 1641 elif test "$drv" = "oss"; then
1642 1642 echo "CONFIG_OSS_LIB=$oss_lib" >> $config_host_mak
1643 1643 fi
... ...