1# $FreeBSD: head/gnu/usr.bin/gdb/libgdb/Makefile 149954 2005-09-10 18:25:53Z 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-kluge.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 \
--- 24 unchanged lines hidden (view full) ---
54.endfor
55
56.if ${TARGET_ARCH} == ${MACHINE_ARCH}
57_fork_child= fork-child.c
58_infptrace= infptrace.c
59_inftarg= inftarg.c
60.endif
61
62GENSRCS= frame-unwind-kluge.c version.c
63
64frame-unwind-kluge.c: frame-unwind.diff
65 cat ${CNTRB_GDB}/gdb/frame-unwind.c > ${.TARGET}
66 patch ${.TARGET} ${.ALLSRC}
67
68version.c:
69 echo '#include "version.h"' > ${.TARGET}
70 echo 'const char version[] = ${VERSION};' >> ${.TARGET}
71 echo 'const char host_name[] = "${MACHINE_ARCH}-${VENDOR}-freebsd";' \
72 >> ${.TARGET}
73 echo 'const char target_name[] = "${TARGET_ARCH}-${VENDOR}-freebsd";' \
74 >> ${.TARGET}
75
76.include <bsd.lib.mk>
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-kluge.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 \
--- 24 unchanged lines hidden (view full) ---
54.endfor
55
56.if ${TARGET_ARCH} == ${MACHINE_ARCH}
57_fork_child= fork-child.c
58_infptrace= infptrace.c
59_inftarg= inftarg.c
60.endif
61
62GENSRCS= frame-unwind-kluge.c version.c
63
64frame-unwind-kluge.c: frame-unwind.diff
65 cat ${CNTRB_GDB}/gdb/frame-unwind.c > ${.TARGET}
66 patch ${.TARGET} ${.ALLSRC}
67
68version.c:
69 echo '#include "version.h"' > ${.TARGET}
70 echo 'const char version[] = ${VERSION};' >> ${.TARGET}
71 echo 'const char host_name[] = "${MACHINE_ARCH}-${VENDOR}-freebsd";' \
72 >> ${.TARGET}
73 echo 'const char target_name[] = "${TARGET_ARCH}-${VENDOR}-freebsd";' \
74 >> ${.TARGET}
75
76.include <bsd.lib.mk>