projects
/
drnoksnes
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
workaround a problem with the harmattan gcc
[drnoksnes]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
c62ddc9
..
45f74b5
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-17,7
+17,14
@@
else ifeq ($(ARCH),i386)
CONF_BUILD_ASM_SPC700?=0
CONF_BUILD_ASM_SA1?=0
CONF_BUILD_MISC_ROUTINES?=misc_i386
CONF_BUILD_ASM_SPC700?=0
CONF_BUILD_ASM_SA1?=0
CONF_BUILD_MISC_ROUTINES?=misc_i386
+else ifeq ($(ARCH),amd64)
+ CONF_BUILD_ASM_CPU?=0
+ CONF_BUILD_ASM_SPC700?=0
+ CONF_BUILD_ASM_SA1?=0
+ CONF_BUILD_MISC_ROUTINES?=misc_amd64
endif
endif
+# PNG screenshot support (requires libpng)
+CONF_PNG?=1
# Hardware pixel doubling (in N8x0)
CONF_XSP?=0
# Hildon Desktop compositing (in Fremantle)
# Hardware pixel doubling (in N8x0)
CONF_XSP?=0
# Hildon Desktop compositing (in Fremantle)
@@
-60,6
+67,11
@@
OBJS += platform/path.o platform/config.o
OBJS += platform/sdl.o platform/sdlv.o platform/sdla.o platform/sdli.o
OBJS += platform/sdlvscalers.o
OBJS += platform/sdl.o platform/sdlv.o platform/sdla.o platform/sdli.o
OBJS += platform/sdlvscalers.o
+ifeq ($(CONF_PNG), 1)
+ CPPFLAGS += -DCONF_PNG=1 $(shell pkg-config --cflags libpng)
+ LDLIBS += $(shell pkg-config --libs libpng)
+ OBJS += screenshot.o
+endif
ifeq ($(CONF_XSP), 1)
CPPFLAGS += -DCONF_XSP=1 $(shell pkg-config --cflags xsp)
LDLIBS += $(shell pkg-config --libs xsp)
ifeq ($(CONF_XSP), 1)
CPPFLAGS += -DCONF_XSP=1 $(shell pkg-config --cflags xsp)
LDLIBS += $(shell pkg-config --libs xsp)
@@
-93,6
+105,7
@@
all: drnoksnes
clean:
rm -f drnoksnes *.o *.d platform/*.o platform/*.d
rm -f build-stamp configure-stamp
clean:
rm -f drnoksnes *.o *.d platform/*.o platform/*.d
rm -f build-stamp configure-stamp
+ echo "$(OBJS)"
remake: clean deps all
remake: clean deps all
@@
-128,7
+141,11
@@
clean: gui_clean
install: gui_install
endif
install: gui_install
endif
-distclean: clean
+profclean: clean
+ find . -name '*.gcno' -delete
+ find . -name '*.gcda' -delete
+
+distclean: profclean clean
rm -f config.mk
.PHONY: all clean remake deps install gui gui_clean distclean
rm -f config.mk
.PHONY: all clean remake deps install gui gui_clean distclean