Upload UI
[lsnes.git] / src / platform / wxwidgets / Makefile
blob7f6d5a5a11186dbbbc1de4ce67d5dd30180babc5
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)
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
24 $(REALCC) -c -o $@ $< -I../../../include $(CFLAGS) $(WXW_CFLAGS)
26 precheck:
27 @true
29 clean:
30 rm -f *.$(OBJECT_SUFFIX) __all__.ldflags __all__.files