X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=Makefile;h=db8e1f60994ebd86023aeebb62e5085a2271706f;hp=5e7ffbca37a2b93ff4cf86f693961ebec1b1cfe5;hb=799b0b8773d6add1de99efd582c93701b82e970d;hpb=ee849648a1bd5d12bd48c98f3b51bb96d7984d43 diff --git a/Makefile b/Makefile index 5e7ffbca..db8e1f60 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ 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 +LDFLAGS += -lz -lpthread -ldl -lpng -lbz2 ifeq "$(ARCH)" "arm" CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp -ffast-math ASFLAGS += -mcpu=cortex-a8 -mfpu=neon @@ -14,7 +14,9 @@ endif ifndef DEBUG CFLAGS += -O2 -DNDEBUG endif -USE_OSS = 1 +CFLAGS += $(EXTRA_CFLAGS) + +USE_OSS ?= 1 #USE_ALSA = 1 #DRC_DBG = 1 #PCNT = 1 @@ -65,22 +67,32 @@ OBJS += plugins/dfxvideo/draw.o else OBJS += plugins/dfxvideo/draw_fb.o endif + # cdrcimg plugins/cdrcimg/%.o: CFLAGS += -Wall OBJS += plugins/cdrcimg/cdrcimg.o # gui -OBJS += frontend/main.o frontend/plugin.o frontend/plugin_lib.o -OBJS += frontend/menu.o +OBJS += frontend/main.o frontend/plugin.o +ifeq "$(USE_GTK)" "1" +OBJS += maemo/hildon.o maemo/main.o +maemo/%.o: maemo/%.c +maemo/%.o: CFLAGS += -Wall +else +OBJS += frontend/plugin_lib.o 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 ifeq "$(ARCH)" "arm" -OBJS += frontend/arm_utils.o OBJS += frontend/plat_omap.o +OBJS += frontend/pandora.o else OBJS += frontend/plat_dummy.o endif +endif # !USE_GTK +ifeq "$(ARCH)" "arm" +OBJS += frontend/arm_utils.o +endif ifdef X11 frontend/%.o: CFLAGS += -DX11 OBJS += frontend/xkb.o