1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#
# Creation Date: <1999/03/28 04:20:31 samuel>
# Time-stamp: <2001/06/16 21:51:57 samuel>
#
# <Makefile>
#
# Rules for the debugger.o target
#
# Copyright (C) 1999, 2000, 2001 Samuel Rydh (samuel@ibrium.se)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation
#
SUB_DIRS = testsuite
COSM_DIR1 = deb
COSM_DIR2 = mon
#### TARGET 1 #####
O_TARGET = debugger.o
O_OBJS = $(addprefix obj/, breakpoints.o mmu_cmds.o nub.o dgram.o mac_asm.o )
#### TARGET 2 #####
LDFLAGS_TARGET2 = -lncurses
P_TARGET2 = moldeb
O_OBJS2 = $(addprefix mon/obj/, ppc-opc.o ppc-dis.o m68k-opc.o m68k-dis.o floatformat.o ) \
$(addprefix deb/obj/, deb.o symbols.o cmdline.o monitor.o) \
$(addprefix obj/, dgram.o )
STATIC_LIBS2 = ../emulation/obj/res_manager.o ../lib/obj/extralib.o
##### COMMON ######
CFLAGS_EXTRA = $(CFLAGS_MM) -I$(SHEADERS_PATH) -I./include -I../include
ASMFLAGS_EXTRA = -I../include -I$(SHEADERS_PATH)
CLEAN_FILES = include/macasm_syms.h
# AltiVec Probe
ifeq "$(shell (($(AS) -m7400 > /dev/null 2>&1 \
< /dev/null) && echo 1); $(RM) a.out )" "1"
ALTIVEC_FLAGS = -D__ALTIVEC__
ALTIVEC_AS = -m7400
endif
include ../Rules.make
deb/obj/symbols.o: include/macasm_syms.h
include/macasm_syms.h: obj/mac_asm.o
@echo "/* WARNING: AUTOMATICALLY GENERATED DO NOT EDIT */" > $@
@echo "static char *macasm_syms[] = {" >> $@
(nm obj/mac_asm.o | grep -v '\(compiled\)\|\(\.o$$\)\|\( a \)\|\(\.\.ng$$\)' | sort ) \
| awk -- '/[0-9a-fA-f].* . .*/ { print "\"*"$$1 " " $$3 "\"," }' >> $@
@echo "NULL };" >> $@
|