From c5061935e3f7b91d889d7546b06c4515c3004cb2 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 3 Jan 2011 18:40:50 +0200 Subject: frontend cleanup --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2602abb..28a0c79 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,11 @@ AS = $(CROSS_COMPILE)as CC = $(CROSS_COMPILE)gcc LD = $(CROSS_COMPILE)ld +ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}') + CFLAGS += -ggdb -Ifrontend LDFLAGS += -lz -lpthread -ldl -lpng -ifdef CROSS_COMPILE +ifeq "$(ARCH)" "arm" CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -ffast-math ASFLAGS += -mcpu=cortex-a8 -mfpu=neon endif @@ -55,14 +57,12 @@ plugins/cdrcimg/%.o: CFLAGS += -Wall OBJS += plugins/cdrcimg/cdrcimg.o # gui -OBJS += gui/Plugin.o - OBJS += frontend/main.o frontend/plugin.o frontend/plugin_lib.o OBJS += frontend/menu.o OBJS += frontend/linux/fbdev.o frontend/linux/in_evdev.o OBJS += frontend/linux/plat.o frontend/linux/oshide.o OBJS += frontend/common/fonts.o frontend/common/input.o frontend/common/readpng.o -ifdef CROSS_COMPILE +ifeq "$(ARCH)" "arm" OBJS += frontend/arm_utils.o OBJS += frontend/plat_omap.o else -- cgit v1.2.3