X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2FMakefile;h=34856acd0e33e42dc2a6c756c6c09219f00c96a1;hb=f342bededbe5d51afd1632e689f5105e50d4f63e;hp=d09e2115b236c07c57ec587ba64f85c986733e34;hpb=d2f29611d1379a249c8f3f955ed16a336f9290cd;p=libpicofe.git diff --git a/linux/Makefile b/linux/Makefile index d09e211..34856ac 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -1,4 +1,7 @@ # settings +#use_fbdev = 1 +#fake_in_gp2x = 1 + use_musashi = 1 #use_fame = 1 use_cz80 = 1 @@ -8,7 +11,8 @@ use_sh2drc = 1 #drc_debug = 3 #drc_debug_interp = 1 #profile = 1 -#fake_in_gp2x = 1 + +all: mkdirs PicoDrive -include Makefile.local @@ -24,19 +28,25 @@ ifeq "$(ARCH)" "arm" CFLAGS += -mcpu=arm920t DEFINES += ARM endif -LDFLAGS += -lpthread -LDFLAGS += -lX11 -CC = $(CROSS)gcc +CC ?= $(CROSS)gcc # frontend OBJS += io.o emu.o blit.o in_evdev.o plat.o sndout_oss.o log_io.o # common -OBJS += platform/common/main.o platform/common/emu.o platform/common/menu.o \ +OBJS += platform/common/main.o platform/common/emu.o platform/common/menu_pico.o \ platform/common/config.o platform/common/fonts.o platform/common/readpng.o \ platform/common/input.o +ifeq "$(use_fbdev)" "1" +DEFINES += FBDEV +OBJS += fbdev.o +else +LDFLAGS += -lpthread +LDFLAGS += -lX11 +endif + ifeq "$(fake_in_gp2x)" "1" DEFINES += IN_GP2X FAKE_IN_GP2X OBJS += platform/gp2x/in_gp2x.o @@ -60,9 +70,7 @@ vpath %.s = ../.. vpath %.S = ../.. vpath %.asm = ../.. -DIRS += platform/linux - -all: mkdirs PicoDrive +DIRS += platform/linux zlib unzip include ../common/common.mak include ../common/revision.mak @@ -80,6 +88,9 @@ PicoDrive : $(OBJS) @echo ">>>" $@ $(CC) $(CFLAGS) $^ $(LDFLAGS) -Wl,-Map=PicoDrive.map -o $@ +pprof: pprof.c + $(CROSS)gcc -O2 -ggdb -DPPROF -DPPROF_TOOL -I../../ -I. $^ -o $@ + %.o : %.asm @echo ">>>" $< nasm -f elf $< -o $@