If initsram/initstate points to LSS file, pull the matching member
[lsnes.git] / src / platform / portaudio / Makefile
blobbb087108ee2933255751ef7828a3427854603931
1 ifeq ($(SOUND), PORTAUDIO)
2 OBJECTS=$(patsubst %.cpp,%.$(OBJECT_SUFFIX),$(wildcard *.cpp))
3 PA_CFLAGS += $(shell $(CROSS_PREFIX)pkg-config portaudio-2.0 --cflags)
4 PA_LDFLAGS += $(shell $(CROSS_PREFIX)pkg-config portaudio-2.0 --libs)
5 else
6 OBJECTS=
7 endif
10 .PRECIOUS: %.$(OBJECT_SUFFIX) %.files
12 __all__.files: $(OBJECTS)
13 lua ../../genfilelist.lua $^ >$@
14 echo $(PA_LDFLAGS) >__all__.ldflags
16 %.$(OBJECT_SUFFIX): %.cpp %.cpp.dep
17 $(REALCC) -c -o $@ $< -I../../../include $(CFLAGS) $(PA_CFLAGS) -Wall
19 precheck:
20 ../../../buildaux/mkdeps$(DOT_EXECUTABLE_SUFFIX) ../../../include -- *.cpp
21 @true
23 forcelook:
24 @true
26 clean:
27 rm -f *.$(OBJECT_SUFFIX) __all__.ldflags __all__.files