Makefile revision 138380
1# $FreeBSD: head/gnu/usr.bin/gdb/libgdb/Makefile 138380 2004-12-05 04:08:22Z marcel $
2
3TARGET_ARCH?= ${MACHINE_ARCH}
4
5LIB=	gdb
6INTERNALLIB=
7SRCS=	annotate.c arch-utils.c auxv.c ax-gdb.c ax-general.c \
8	bcache.c bfd-target.c block.c blockframe.c breakpoint.c \
9	buildsym.c \
10	c-exp.y c-lang.c c-typeprint.c c-valprint.c charset.c \
11	cli-cmds.c cli-decode.c cli-dump.c cli-interp.c cli-logging.c \
12	cli-out.c cli-script.c cli-setshow.c cli-utils.c coff-pe-read.c \
13	coffread.c complaints.c completer.c copying.c corefile.c \
14	corelow.c cp-abi.c cp-namespace.c cp-support.c cp-valprint.c \
15	dbxread.c dcache.c demangle.c dictionary.c disasm.c doublest.c \
16	dummy-frame.c dwarf2-frame.c dwarf2expr.c dwarf2loc.c \
17	dwarf2read.c dwarfread.c \
18	elfread.c environ.c eval.c event-loop.c event-top.c exec.c \
19	expprint.c \
20	f-exp.y f-lang.c f-typeprint.c f-valprint.c findvar.c \
21	${_fork_child} frame-base.c frame-unwind.c frame.c \
22	gdb-events.c gdbarch.c gdbtypes.c gnu-v2-abi.c gnu-v3-abi.c \
23	hpacc-abi.c \
24	inf-loop.c infcall.c infcmd.c inflow.c ${_infptrace} infrun.c \
25	${_inftarg} init.c interps.c \
26	jv-exp.y jv-lang.c jv-typeprint.c jv-valprint.c	\
27	kod-cisco.c kod.c \
28	language.c linespec.c \
29	m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c macrocmd.c \
30	macroexp.c macroscope.c	macrotab.c main.c maint.c mdebugread.c \
31	mem-break.c memattr.c mi-cmd-break.c mi-cmd-disas.c \
32	mi-cmd-env.c mi-cmd-file.c mi-cmd-stack.c mi-cmd-var.c \
33	mi-cmds.c mi-console.c mi-getopt.c mi-interp.c mi-main.c \
34	mi-out.c mi-parse.c mi-symbol-cmds.c minsyms.c mipsread.c \
35	nlmread.c \
36	objc-exp.y objc-lang.c objfiles.c observer.c osabi.c \
37	p-exp.y p-lang.c p-typeprint.c p-valprint.c parse.c printcmd.c \
38	regcache.c reggroups.c remote-fileio.c remote-utils.c remote.c \
39	scm-exp.c scm-lang.c scm-valprint.c sentinel-frame.c ser-pipe.c \
40	ser-tcp.c ser-unix.c serial.c signals.c solib.c solib-svr4.c \
41	source.c stabsread.c stack.c std-regs.c symfile.c symmisc.c \
42	symtab.c \
43	target.c thread.c top.c tracepoint.c trad-frame.c tui-command.c \
44	tui-data.c tui-disasm.c tui-file.c tui-hooks.c tui-interp.c \
45	tui-io.c tui-layout.c tui-out.c tui-regs.c tui-source.c \
46	tui-stack.c tui-win.c tui-windata.c tui-wingeneral.c \
47	tui-winsource.c tui.c typeprint.c \
48	ui-file.c ui-out.c user-regs.c utils.c \
49	valarith.c valops.c valprint.c values.c varobj.c \
50	wrapper.c ${LIBSRCS}
51
52.if ${TARGET_ARCH} == ${MACHINE_ARCH}
53_fork_child= fork-child.c
54_infptrace= infptrace.c
55_inftarg= inftarg.c
56.endif
57
58GENSRCS= version.c
59
60version.c:
61	echo '#include "version.h"' >  ${.TARGET}
62	echo 'const char version[] = ${VERSION};' >> ${.TARGET}
63	echo 'const char host_name[] = "${MACHINE_ARCH}-${VENDOR}-freebsd";' \
64	    >> ${.TARGET}
65	echo 'const char target_name[] = "${TARGET_ARCH}-${VENDOR}-freebsd";' \
66	    >> ${.TARGET}
67
68.include <bsd.lib.mk>
69