use_sh2drc = 1\r
drc_debug = 1\r
\r
+-include Makefile.local\r
\r
ifeq "$(debug_cyclone)" "1"\r
use_cyclone = 1\r
use_musashi = 1\r
endif\r
ifeq "$(use_musashi)" "1"\r
+# due to CPU stop flag acces\r
asm_cdpico = 0\r
-asm_memory = 0\r
asm_cdmemory = 0\r
else\r
use_cyclone = 1\r
OBJS += cpu/sh2/mame/sh2pico.o\r
OBJS += cpu/sh2/compiler.o\r
OBJS += cpu/sh2/stub_arm.o\r
-ifeq "$(drc_debug)" "1"\r
-DEFINES += DRC_DEBUG=1\r
+ifdef drc_debug\r
+DEFINES += DRC_DEBUG=$(drc_debug)\r
OBJS += cpu/sh2/mame/sh2dasm.o\r
OBJS += platform/linux/host_dasm.o\r
LDFLAGS += -lbfd -lopcodes -liberty\r
endif
DEFINES = _UNZIP_SUPPORT IO_STATS IN_EVDEV
CFLAGS += -I../.. -I.
-LDFLAGS += -lpthread
+LDFLAGS += -lm -lpng
ifeq "$(ARCH)" "arm"
CFLAGS += -mcpu=arm920t
DEFINES += ARM
-else
-LDFLAGS += -lX11
endif
+LDFLAGS += -lpthread
+LDFLAGS += -lX11
CC = $(CROSS)gcc
OBJS += cpu/sh2/mame/sh2pico.o
OBJS += cpu/sh2/compiler.o
OBJS += cpu/sh2/stub_$(ARCH).o
-ifeq "$(drc_debug)" "1"
-DEFINES += DRC_DEBUG=1
+ifdef drc_debug
+DEFINES += DRC_DEBUG=$(drc_debug)
OBJS += cpu/sh2/mame/sh2dasm.o
OBJS += host_dasm.o
LDFLAGS += -lbfd -lopcodes -liberty
PicoDrive : $(OBJS)
@echo ">>>" $@
- $(CC) $(CFLAGS) $^ $(LDFLAGS) -lm -lpng -Wl,-Map=PicoDrive.map -o $@
+ $(CC) $(CFLAGS) $^ $(LDFLAGS) -Wl,-Map=PicoDrive.map -o $@
mkdirs:
@mkdir -p $(DIRS)
{
asymbol *sym = *in_ptr++;
- if (sym->name == NULL || sym->name[0] == '\0')
+ if (sym->name == NULL || sym->name[0] == '\0' || sym->name[0] == '$')
continue;
if (sym->flags & (BSF_DEBUGGING | BSF_SECTION_SYM))
continue;
*/
*out_ptr++ = sym;
}
+
return out_ptr - symbols;
}