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
)
9 ifeq ($(JOYSTICK
), WXWIDGETS
)
10 ifneq ($(GRAPHICS
), WXWIDGETS
)
11 $(error
"WXWIDGETS joystick requires WXWIDGETS graphics")
13 WXW_CFLAGS
+= -DWXWIDGETS_JOYSTICK_SUPPORT
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
)
30 rm -f
*.
$(OBJECT_SUFFIX
) __all__.
ldflags __all__.files