X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=e78d8ca2f141bc69a9eb1aca7cb4303b9b54b211;hb=be26eb239bd06fd83ab740dca5582841eac652dd;hp=71e6a03ac43f78e1ea4055c470b75aad06ec6db5;hpb=2446536be520914616403876d7e49621ac6f4b95;p=picodrive.git diff --git a/Makefile b/Makefile index 71e6a03..e78d8ca 100644 --- a/Makefile +++ b/Makefile @@ -37,12 +37,7 @@ asm_misc = 1 asm_cdpico = 1 asm_cdmemory = 1 else # if not arm -ifneq "$(ARCH)" "x86_64" -# no 64bit support use_fame ?= 1 -else -use_musashi ?= 1 -endif use_cz80 ?= 1 use_sh2mame ?= 1 endif @@ -124,6 +119,9 @@ OBJS += unzip/unzip.o unzip/unzip_stream.o include platform/common/common.mak +OBJS += $(OBJS_COMMON) +CFLAGS += $(addprefix -D,$(DEFINES)) + target_: $(TARGET) clean: @@ -135,6 +133,20 @@ $(TARGET): $(OBJS) pprof: platform/linux/pprof.c $(CC) -O2 -ggdb -DPPROF -DPPROF_TOOL -I../../ -I. $^ -o $@ +tools/textfilter: tools/textfilter.c + make -C tools/ textfilter + +.s.o: + $(CC) $(CFLAGS) -c $< -o $@ + +# random deps +pico/carthw/svp/compiler.o : cpu/drc/emit_$(ARCH).c +cpu/sh2/compiler.o : cpu/drc/emit_$(ARCH).c +cpu/sh2/mame/sh2pico.o : cpu/sh2/mame/sh2.c +pico/pico.o pico/cd/pico.o : pico/pico_cmn.c pico/pico_int.h +pico/memory.o pico/cd/memory.o : pico/pico_int.h pico/memory.h +cpu/fame/famec.o: cpu/fame/famec.c cpu/fame/famec_opcodes.h + # ----------- release ----------- VER ?= $(shell head -n 1 platform/common/version.h | \