head	1.6;
access;
symbols
	netbsd-11-0-RC4:1.6
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.2
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.3
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.2
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.3
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.3
	netbsd-10-0-RC6:1.3
	netbsd-10-0-RC5:1.3
	netbsd-10-0-RC4:1.3
	netbsd-10-0-RC3:1.3
	netbsd-10-0-RC2:1.3
	netbsd-10-0-RC1:1.3
	netbsd-10:1.3.0.36
	netbsd-10-base:1.3
	netbsd-9-3-RELEASE:1.3
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.34
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.3.0.32
	cjep_staticlib_x-base:1.3
	netbsd-9-1-RELEASE:1.3
	phil-wifi-20200421:1.3
	phil-wifi-20200411:1.3
	is-mlppp:1.3.0.30
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.3
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.28
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.3
	netbsd-8-1-RC1:1.3
	pgoyette-compat-merge-20190127:1.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	netbsd-7-2-RELEASE:1.3
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.3
	phil-wifi:1.3.0.26
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.3
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	netbsd-8-0-RC1:1.3
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	netbsd-7-1-2-RELEASE:1.3
	pgoyette-compat:1.3.0.24
	pgoyette-compat-base:1.3
	netbsd-7-1-1-RELEASE:1.3
	matt-nb8-mediatek:1.3.0.22
	matt-nb8-mediatek-base:1.3
	perseant-stdc-iso10646:1.3.0.20
	perseant-stdc-iso10646-base:1.3
	netbsd-8:1.3.0.18
	netbsd-8-base:1.3
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.16
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.3.0.14
	netbsd-7-1-RELEASE:1.3
	netbsd-7-1-RC2:1.3
	netbsd-7-nhusb-base-20170116:1.3
	bouyer-socketcan:1.3.0.12
	bouyer-socketcan-base:1.3
	pgoyette-localcount-20170107:1.3
	netbsd-7-1-RC1:1.3
	pgoyette-localcount-20161104:1.3
	netbsd-7-0-2-RELEASE:1.3
	localcount-20160914:1.3
	netbsd-7-nhusb:1.3.0.10
	netbsd-7-nhusb-base:1.3
	pgoyette-localcount-20160806:1.3
	pgoyette-localcount-20160726:1.3
	pgoyette-localcount:1.3.0.8
	pgoyette-localcount-base:1.3
	netbsd-7-0-1-RELEASE:1.3
	netbsd-7-0:1.3.0.6
	netbsd-7-0-RELEASE:1.3
	netbsd-7-0-RC3:1.3
	netbsd-7-0-RC2:1.3
	netbsd-7-0-RC1:1.3
	netbsd-6-0-6-RELEASE:1.1
	netbsd-6-1-5-RELEASE:1.1
	netbsd-7:1.3.0.4
	netbsd-7-base:1.3
	yamt-pagecache-base9:1.3
	yamt-pagecache-tag8:1.1
	netbsd-6-1-4-RELEASE:1.1
	netbsd-6-0-5-RELEASE:1.1
	tls-earlyentropy:1.3.0.2
	tls-earlyentropy-base:1.3
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.3
	riastradh-drm2-base3:1.3
	netbsd-6-1-3-RELEASE:1.1
	netbsd-6-0-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.1
	netbsd-6-0-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.1
	riastradh-drm2-base2:1.1
	riastradh-drm2-base1:1.1
	riastradh-drm2:1.1.0.12
	riastradh-drm2-base:1.1
	netbsd-6-1:1.1.0.16
	netbsd-6-0-2-RELEASE:1.1
	netbsd-6-1-RELEASE:1.1
	netbsd-6-1-RC4:1.1
	netbsd-6-1-RC3:1.1
	agc-symver:1.1.0.14
	agc-symver-base:1.1
	netbsd-6-1-RC2:1.1
	netbsd-6-1-RC1:1.1
	yamt-pagecache-base8:1.1
	netbsd-6-0-1-RELEASE:1.1
	yamt-pagecache-base7:1.1
	matt-nb6-plus-nbase:1.1
	yamt-pagecache-base6:1.1
	netbsd-6-0:1.1.0.10
	netbsd-6-0-RELEASE:1.1
	netbsd-6-0-RC2:1.1
	tls-maxphys:1.1.0.8
	tls-maxphys-base:1.3
	matt-nb6-plus:1.1.0.6
	matt-nb6-plus-base:1.1
	netbsd-6-0-RC1:1.1
	yamt-pagecache-base5:1.1
	yamt-pagecache-base4:1.1
	netbsd-6:1.1.0.4
	netbsd-6-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.2
	yamt-pagecache-base:1.1;
locks; strict;
comment	@# @;


1.6
date	2024.08.27.17.07.37;	author christos;	state Exp;
branches;
next	1.5;
commitid	iTMpb5UIkvcW1unF;

1.5
date	2023.08.11.17.46.04;	author christos;	state Exp;
branches
	1.5.2.1;
next	1.4;
commitid	pcMBIvwyZyrGwoAE;

1.4
date	2023.08.11.15.18.29;	author christos;	state Exp;
branches;
next	1.3;
commitid	boLH2pDJnda2InAE;

1.3
date	2013.11.05.02.32.12;	author gdt;	state Exp;
branches;
next	1.2;
commitid	gz7ThyrVxU6V52cx;

1.2
date	2013.08.04.23.41.43;	author matt;	state Exp;
branches;
next	1.1;
commitid	uZgukXfHn9tb6c0x;

1.1
date	2011.10.09.02.03.21;	author christos;	state Exp;
branches
	1.1.2.1
	1.1.8.1;
next	;

1.5.2.1
date	2025.08.02.05.33.39;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.1.2.1
date	2014.05.22.16.01.29;	author yamt;	state Exp;
branches;
next	;
commitid	SRuOnF9k1i4dcyBx;

1.1.8.1
date	2014.08.19.23.59.40;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;


desc
@@


1.6
log
@regen and make things compile (all builds except ppc sim)
@
text
@#	$NetBSD: Makefile,v 1.5 2023/08/11 17:46:04 christos Exp $

LIBISPRIVATE=	yes
NOGCCERROR=

.include <bsd.own.mk>
.include "../Makefile.inc"

LIB=	sim
SRCS=	debug.c bits.c sim-endian.c os_emul.c emul_generic.c \
	emul_bugapi.c emul_chirp.c emul_netbsd.c emul_unix.c registers.c vm.c \
	corefile.c model.c spreg.c cpu.c interrupts.c events.c cap.c device.c \
	tree.c device_table.c itable.c mon.c icache.c semantics.c idecode.c \
	support.c psim.c pk_disklabel.c hw_cpu.c hw_memory.c hw_nvram.c \
	hw_iobus.c hw_htab.c hw_disk.c hw_trace.c hw_register.c hw_vm.c \
	hw_init.c hw_core.c hw_pal.c hw_com.c hw_eeprom.c hw_opic.c hw_glue.c \
	hw_phb.c hw_ide.c options.c sim_calls.c callback.c gdb-sim.c
SRCS+=	target-newlib-errno.c target-newlib-open.c target-newlib-signal.c \
	target-newlib-syscall.c

MIC=	${HOST_SH} ${DIST}/move-if-change

HOST_CPPFLAGS+=	-I. \
		-I${DIST}/sim/common \
		-I${DIST}/sim/igen \
		-I${DIST}/sim/ppc -I${DIST}/include \
		-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \
		-I${.CURDIR}/../libbfd/arch/${GDB_MACHINE_ARCH} \
		-I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH} \
		-I${.CURDIR}/../libgdbsupport/arch/${GDB_MACHINE_ARCH} \
		-I${DIST}/bfd \
		-I${DIST}/gdb \
		-I${DIST}/gdb/config \
		-DHAVE_COMMON_FPU \
		-I${.CURDIR}/../arch/${GDB_MACHINE_ARCH} \
		-I${DIST}/gnulib/import
PSIM_DEFINES=	-DHAVE_CONFIG_H \
		-DDEFAULT_INLINE=INLINE_LOCALS \
		-DWITH_HOST_BYTE_ORDER=BYTE_ORDER \
		-DWITH_SMP=5 \
		-DSIM_COMMON_BUILD \
		-DSIM_TOPDIR_BUILD \
		-DHAVE_TERMIOS_STRUCTURE \
		-DHAVE_DEVZERO  \
		-DWITH_TRACE=0 \
		-DWITH_ASSERT=0 \
		-DWITH_STDIO=0 \
		-DWITH_ENVIRONMENT=0 \
		-DWITH_RESERVED_BITS=0 \
		-DREPORT_BUGS_TO=\"gnats@@NetBSD.org\" \
		-DPKGVERSION=\"13.2\"

# we need the same -I flags for host / target.
CPPFLAGS+=	${HOST_CPPFLAGS} ${PSIM_DEFINES}

#
# These portions run several programs to generate more code to compile.
#

# igen portion
IGEN_FLAGS=	-E    -F 32,f,o  -CSRI 1024  -N 5 \
	-o ${DIST}/sim/ppc/dc-complex \
	-I ${DIST}/sim/ppc -i ${DIST}/sim/ppc/powerpc.igen \
	-n icache.h    -hc tmp-icache.h \
	-n icache.c    -c  tmp-icache.c \
	-n semantics.h -hs tmp-semantics.h \
	-n semantics.c -s  tmp-semantics.c \
	-n idecode.h   -hd tmp-idecode.h \
	-n idecode.c   -d  tmp-idecode.c \
	-n itable.h    -ht tmp-itable.h \
	-n itable.c    -t  tmp-itable.c \
	-n model.h     -hm tmp-model.h \
	-n model.c     -m  tmp-model.c \
	-n support.h   -hf tmp-support.h \
	-n support.c   -f  tmp-support.c
IGENED_FILES=	icache.h icache.c idecode.h idecode.c semantics.h semantics.c \
		itable.h itable.c model.h model.c support.h support.c
IGENSRCS= igen.c table.c lf.c misc.c filter_host.c ld-decode.c ld-cache.c filter.c ld-insn.c gen-model.c gen-itable.c gen-icache.c gen-semantics.c gen-idecode.c gen-support.c lf-ppc.c dumpf.c filter-ppc.c
IGENOBJS= ${IGENSRCS:S/.c/.lo/}
DPSRCS+= ${IGENED_FILES:M*.h}

${IGENED_FILES}: run-igen
run-igen: igen powerpc.igen
	${_MKMSG_CREATE} ${IGENED_FILES}
	rm -f ${.TARGET}
	./igen ${IGEN_FLAGS}
	${MIC} tmp-icache.h icache.h
	${MIC} tmp-icache.c icache.c
	${MIC} tmp-idecode.h idecode.h
	${MIC} tmp-idecode.c idecode.c
	${MIC} tmp-semantics.h semantics.h
	${MIC} tmp-semantics.c semantics.c
	${MIC} tmp-itable.h itable.h
	${MIC} tmp-itable.c itable.c
	${MIC} tmp-model.h model.h
	${MIC} tmp-model.c model.c
	${MIC} tmp-support.h support.h
	${MIC} tmp-support.c support.c
	touch ${.TARGET}

igen: ${IGENOBJS}
	${HOST_LINK.c} ${IGENOBJS} -o ${.TARGET}

# dgen portion
#DGEN_FLAGS=	-r ${DIST}/sim/ppc/ppc-spr-table \
#	-n spreg.h     -hp tmp-spreg.h \
#	-n spreg.c     -p  tmp-spreg.c
#DGENED_FILES=	spreg.h spreg.c
#DGENSRCS= dgen.c table.c lf.c misc.c filter_host.c
#DGENOBJS= ${DGENSRCS:S/.c/.lo/}
#DPSRCS+= ${DGENED_FILES:M*.h}

#${DGENED_FILES}: run-dgen
#run-dgen: dgen
#	./dgen ${DGEN_FLAGS}
#	${MIC} tmp-spreg.h spreg.h
#	${MIC} tmp-spreg.c spreg.c
#	touch run-dgen
#
#dgen: ${DGENOBJS}
#	${HOST_LINK.c} ${DGENOBJS} -o ${.TARGET}

# hw.c / hw.h portion
HWSRCS=	hw_cpu.c hw_memory.c hw_nvram.c hw_iobus.c hw_htab.c hw_disk.c \
	hw_trace.c hw_register.c hw_vm.c hw_init.c hw_core.c hw_pal.c \
	hw_com.c hw_eeprom.c hw_opic.c hw_glue.c hw_phb.c hw_ide.c

hw.h hw.c: run-hw
run-hw: Makefile
	f=""; \
	for i in ${HWSRCS}; do \
		case " $$f " in \
			*" $$i "*) ;; \
			*) f="$$f $$i" ;; \
		esac ; \
	done ; \
	for hw in $$f; do \
		echo $$hw; \
	done | ${TOOL_SED} -e 's/^.*\(hw_.*\)\.c/\1/' \
		   -e 's/^/extern const device_descriptor /' \
		   -e 's/$$/_device_descriptor\[\];/' \
			> tmp-hw.h
	f=""; \
	for i in ${HWSRCS}; do \
		case " $$f " in \
			*" $$i "*) ;; \
			*) f="$$f $$i" ;; \
		esac ; \
	done ; \
	for hw in $$f; do \
		echo $$hw; \
	done | ${TOOL_SED} -e 's/^.*\(hw_.*\)\.c/\1/' \
		   -e 's/^/    /' \
		   -e 's/$$/_device_descriptor,/' > tmp-hw.c
	${MIC} tmp-hw.h hw.h
	${MIC} tmp-hw.c hw.c
	touch run-hw
DPSRCS+= hw.h

# package portion
PACKAGE_SRC =	pk_disklabel.c
PK_H = 		pk.h

${PK_H}: run-pk
run-pk: $(PACKAGE_SRC)
	f=""; \
	for i in $(PACKAGE_SRC) ; do \
		case " $$f " in \
			*" $$i "*) ;; \
			*) f="$$f $$i" ;; \
		esac ; \
	done ; \
	for pk in $$f; do \
		echo $$pk; \
	done | ${TOOL_SED} -e 's/^.*pk_\(.*\)\.c/\1/' \
		   -e 's/^/extern package_create_instance_callback pk_/' \
		   -e 's/$$/_create_instance;/' > tmp-pk.h
	${MIC} tmp-pk.h pk.h
	touch run-pk
DPSRCS+= ${PK_H}

# defines portion
DEFINES_H=	defines.h
${DEFINES_H}: run-defines
run-defines:
	${TOOL_SED} -n -e '/^#define HAVE_/s/ 1$$/",/' \
	       -e '/^#define HAVE_/s//"HAVE_/p' \
	       < ${.CURDIR}/arch/${GDB_MACHINE_ARCH}/config.h > tmp-defines.h
	${MIC} tmp-defines.h defines.h
	touch run-defines
DPSRCS+= ${DEFINES_H}

# misc. dependencies.
#filter_host.lo: ppc-config.h

#ppc-config.h: ${DIST}/sim/ppc/std-config.h
#	cp -f ${.ALLSRC} ${.TARGET}
#DPSRCS+= ppc-config.h

CLEANFILES+=	igen dgen gentmap *.lo \
		ppc-config.h \
		tmp-icache.h icache.h \
		tmp-icache.c icache.c \
		tmp-idecode.h idecode.h \
		tmp-idecode.c idecode.c \
		tmp-semantics.h semantics.h \
		tmp-semantics.c semantics.c \
		tmp-itable.h itable.h \
		tmp-itable.c itable.c \
		tmp-model.h model.h \
		tmp-model.c model.c \
		tmp-support.h support.h \
		tmp-support.c support.c \
		tmp-spreg.h spreg.h \
		tmp-spreg.c spreg.c \
		tmp-vals.h targ-vals.h \
		hw.c hw.h \
		defines.h pk.h \
		targ-map.c targ-vals.def \
		run-defines run-dgen run-hw run-igen run-pk

.SUFFIXES: .lo
.c.lo:
	${HOST_COMPILE.c} -o ${.TARGET} $<

.PATH: ${DIST}/sim/ppc ${DIST}/sim/common ${DIST}/sim/igen

.include <bsd.lib.mk>
.include "../../Makefile.inc"
@


1.5
log
@Add powerpc/ia64
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2023/08/11 15:18:29 christos Exp $
d10 1
a10 1
SRCS=	debug.c filter_filename.c bits.c sim-endian.c os_emul.c emul_generic.c \
d24 2
d30 1
d36 1
a36 1
		-I${DIST}/sim/common
d42 1
d78 1
a78 1
IGENSRCS= igen.c table.c lf.c misc.c filter_host.c ld-decode.c ld-cache.c filter.c ld-insn.c gen-model.c gen-itable.c gen-icache.c gen-semantics.c gen-idecode.c gen-support.c
d105 17
a121 17
DGEN_FLAGS=	-r ${DIST}/sim/ppc/ppc-spr-table \
	-n spreg.h     -hp tmp-spreg.h \
	-n spreg.c     -p  tmp-spreg.c
DGENED_FILES=	spreg.h spreg.c
DGENSRCS= dgen.c table.c lf.c misc.c filter_host.c
DGENOBJS= ${DGENSRCS:S/.c/.lo/}
DPSRCS+= ${DGENED_FILES:M*.h}

${DGENED_FILES}: run-dgen
run-dgen: dgen
	./dgen ${DGEN_FLAGS}
	${MIC} tmp-spreg.h spreg.h
	${MIC} tmp-spreg.c spreg.c
	touch run-dgen

dgen: ${DGENOBJS}
	${HOST_LINK.c} ${DGENOBJS} -o ${.TARGET}
d193 6
a198 8
# misc. dependancies.
filter_host.c: ${DIST}/sim/ppc/filter_filename.c
	cp -f ${.ALLSRC} ${.TARGET}
filter_host.lo: ppc-config.h

ppc-config.h: ${DIST}/sim/ppc/std-config.h
	cp -f ${.ALLSRC} ${.TARGET}
DPSRCS+= ppc-config.h
d201 1
a201 1
		ppc-config.h filter_host.c \
d226 1
a226 1
.PATH: ${DIST}/sim/ppc ${DIST}/sim/common
@


1.5.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2024/08/27 17:07:37 christos Exp $
d10 1
a10 1
SRCS=	debug.c bits.c sim-endian.c os_emul.c emul_generic.c \
a23 2
		-I${DIST}/sim/common \
		-I${DIST}/sim/igen \
a27 1
		-I${.CURDIR}/../libgdbsupport/arch/${GDB_MACHINE_ARCH} \
d33 1
a33 1
		-I${DIST}/gnulib/import
a38 1
		-DSIM_TOPDIR_BUILD \
d74 1
a74 1
IGENSRCS= igen.c table.c lf.c misc.c filter_host.c ld-decode.c ld-cache.c filter.c ld-insn.c gen-model.c gen-itable.c gen-icache.c gen-semantics.c gen-idecode.c gen-support.c lf-ppc.c dumpf.c filter-ppc.c
d101 17
a117 17
#DGEN_FLAGS=	-r ${DIST}/sim/ppc/ppc-spr-table \
#	-n spreg.h     -hp tmp-spreg.h \
#	-n spreg.c     -p  tmp-spreg.c
#DGENED_FILES=	spreg.h spreg.c
#DGENSRCS= dgen.c table.c lf.c misc.c filter_host.c
#DGENOBJS= ${DGENSRCS:S/.c/.lo/}
#DPSRCS+= ${DGENED_FILES:M*.h}

#${DGENED_FILES}: run-dgen
#run-dgen: dgen
#	./dgen ${DGEN_FLAGS}
#	${MIC} tmp-spreg.h spreg.h
#	${MIC} tmp-spreg.c spreg.c
#	touch run-dgen
#
#dgen: ${DGENOBJS}
#	${HOST_LINK.c} ${DGENOBJS} -o ${.TARGET}
d189 8
a196 6
# misc. dependencies.
#filter_host.lo: ppc-config.h

#ppc-config.h: ${DIST}/sim/ppc/std-config.h
#	cp -f ${.ALLSRC} ${.TARGET}
#DPSRCS+= ppc-config.h
d199 1
a199 1
		ppc-config.h \
d224 1
a224 1
.PATH: ${DIST}/sim/ppc ${DIST}/sim/common ${DIST}/sim/igen
@


1.4
log
@fix ppc/psim
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2013/11/05 02:32:12 gdt Exp $
d18 2
@


1.3
log
@Use -f with cp to cope with nonwritable files in .
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2013/08/04 23:41:43 matt Exp $
d17 1
a17 1
	hw_phb.c hw_ide.c options.c sim_calls.c callback.c targ-map.c gdb-sim.c
d25 1
d33 1
a33 1
		-DDEFAULT_INLINE=PSIM_INLINE_LOCALS \
d36 1
d38 8
a45 1
		-DHAVE_DEVZERO
d57 1
a57 1
	-I ${DIST}/sim/ppc -i ${DIST}/sim/ppc/ppc-instructions \
d77 1
a77 1
run-igen: igen ppc-instructions
a116 25
# gentmap portion
GENTMAPSRCS= gentmap.c
GENTMAPOBJS= ${GENTMAPSRCS:S/.c/.lo/}

gentmap: ${GENTMAPOBJS}
	${HOST_LINK.c} ${GENTMAPOBJS} -o ${.TARGET}

gentmap.c: targ-vals.def

targ-vals.def: ${DIST}/sim/ppc/../common/nltvals.def
	rm -f targ-vals.def tmp-def
	cat ${DIST}/sim/ppc/../common/nltvals.def > tmp-vals.def
	${MIC} tmp-vals.def targ-vals.def

targ-vals.h: gentmap targ-vals.def
	rm -f tmp-vals.h
	./gentmap -h > tmp-vals.h
	${MIC} tmp-vals.h targ-vals.h
DPSRCS+= targ-vals.h

targ-map.c: gentmap targ-vals.def
	rm -f tmp-map.c
	./gentmap -c > tmp-map.c
	${MIC} tmp-map.c targ-map.c

@


1.2
log
@Use GDB_MACHINE_ARCH instead of MACHINE_ARCH.
GDB_MACHINE_ARCH is MACHINE_ARCH, except armv[467] is replaced with arm instead.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/10/09 02:03:21 christos Exp $
d205 1
a205 1
	cp ${.ALLSRC} ${.TARGET}
d209 1
a209 1
	cp ${.ALLSRC} ${.TARGET}
@


1.1
log
@add powerpc support
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2008/10/25 22:27:35 apb Exp $
d23 2
a24 2
		-I${.CURDIR}/arch/${MACHINE_ARCH} \
		-I${.CURDIR}/../libbfd/arch/${MACHINE_ARCH} \
d29 1
a29 1
		-I${.CURDIR}/../arch/${MACHINE_ARCH} \
d198 1
a198 1
	       < ${.CURDIR}/arch/${MACHINE_ARCH}/config.h > tmp-defines.h
@


1.1.8.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d23 2
a24 2
		-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \
		-I${.CURDIR}/../libbfd/arch/${GDB_MACHINE_ARCH} \
d29 1
a29 1
		-I${.CURDIR}/../arch/${GDB_MACHINE_ARCH} \
d198 1
a198 1
	       < ${.CURDIR}/arch/${GDB_MACHINE_ARCH}/config.h > tmp-defines.h
d205 1
a205 1
	cp -f ${.ALLSRC} ${.TARGET}
d209 1
a209 1
	cp -f ${.ALLSRC} ${.TARGET}
@


1.1.2.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/10/09 02:03:21 christos Exp $
d23 2
a24 2
		-I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \
		-I${.CURDIR}/../libbfd/arch/${GDB_MACHINE_ARCH} \
d29 1
a29 1
		-I${.CURDIR}/../arch/${GDB_MACHINE_ARCH} \
d198 1
a198 1
	       < ${.CURDIR}/arch/${GDB_MACHINE_ARCH}/config.h > tmp-defines.h
d205 1
a205 1
	cp -f ${.ALLSRC} ${.TARGET}
d209 1
a209 1
	cp -f ${.ALLSRC} ${.TARGET}
@


