Refactor emulator status reporting (and fix the statusbar doesn't update bug)
[lsnes.git] / src / platform / wxwidgets / Makefile
bloba35919e0b0be3d8d7f88b6d5144bf90274c9c1b5
1 ifeq ($(GRAPHICS), WXWIDGETS)
2 OBJECTS=$(patsubst %.cpp,%.$(OBJECT_SUFFIX),$(wildcard *.cpp))
3 WXW_CFLAGS += $(shell $(CROSS_PREFIX)wx-config --cxxflags) $(shell $(CROSS_PREFIX)pkg-config libswscale --cflags) -Wall -Werror
4 WXW_LDFLAGS += $(shell $(CROSS_PREFIX)wx-config --libs) $(shell $(CROSS_PREFIX)pkg-config libswscale --libs)
5 else
6 OBJECTS =
7 endif
9 ifeq ($(JOYSTICK), WXWIDGETS)
10 ifneq ($(GRAPHICS), WXWIDGETS)
11 $(error "WXWIDGETS joystick requires WXWIDGETS graphics")
12 endif
13 WXW_CFLAGS += -DWXWIDGETS_JOYSTICK_SUPPORT
14 endif
17 .PRECIOUS: %.$(OBJECT_SUFFIX)
19 __all__.files: $(OBJECTS)
20 lua ../../genfilelist.lua $^ >$@
21 echo $(WXW_LDFLAGS) >__all__.ldflags
23 %.$(OBJECT_SUFFIX): %.cpp %.cpp.dep
24 $(REALCC) -c -o $@ $< -I../../../include $(CFLAGS) $(WXW_CFLAGS)
26 precheck:
27 ../../../buildaux/mkdeps.exe ../../../include -- *.cpp
28 @true
30 forcelook:
31 @true
33 clean:
34 rm -f *.$(OBJECT_SUFFIX) __all__.ldflags __all__.files