1# $FreeBSD: head/gnu/usr.bin/gdb/libgdb/Makefile 141911 2005-02-14 12:10:14Z obrien $
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 source.c stabsread.c \
41 stack.c std-regs.c symfile.c symmisc.c symtab.c \
42 target.c thread.c top.c tracepoint.c trad-frame.c tui-command.c \
43 tui-data.c tui-disasm.c tui-file.c tui-hooks.c tui-interp.c \
44 tui-io.c tui-layout.c tui-out.c tui-regs.c tui-source.c \
45 tui-stack.c tui-win.c tui-windata.c tui-wingeneral.c \
46 tui-winsource.c tui.c typeprint.c \
47 ui-file.c ui-out.c user-regs.c utils.c \
48 valarith.c valops.c valprint.c values.c varobj.c \
49 wrapper.c ${LIBSRCS}
50
51.for stupid_gnu in \
52xregcomp xre_exec xregexec xre_search xre_compile_fastmap xregerror xre_comp xre_set_syntax
53CFLAGS+= -D${stupid_gnu}=${stupid_gnu:S/^x//}
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= version.c
63
64version.c:
65 echo '#include "version.h"' > ${.TARGET}
66 echo 'const char version[] = ${VERSION};' >> ${.TARGET}
67 echo 'const char host_name[] = "${MACHINE_ARCH}-${VENDOR}-freebsd";' \
68 >> ${.TARGET}
69 echo 'const char target_name[] = "${TARGET_ARCH}-${VENDOR}-freebsd";' \
70 >> ${.TARGET}
71
72.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.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 source.c stabsread.c \
41 stack.c std-regs.c symfile.c symmisc.c symtab.c \
42 target.c thread.c top.c tracepoint.c trad-frame.c tui-command.c \
43 tui-data.c tui-disasm.c tui-file.c tui-hooks.c tui-interp.c \
44 tui-io.c tui-layout.c tui-out.c tui-regs.c tui-source.c \
45 tui-stack.c tui-win.c tui-windata.c tui-wingeneral.c \
46 tui-winsource.c tui.c typeprint.c \
47 ui-file.c ui-out.c user-regs.c utils.c \
48 valarith.c valops.c valprint.c values.c varobj.c \
49 wrapper.c ${LIBSRCS}
50
51.for stupid_gnu in \
52xregcomp xre_exec xregexec xre_search xre_compile_fastmap xregerror xre_comp xre_set_syntax
53CFLAGS+= -D${stupid_gnu}=${stupid_gnu:S/^x//}
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= version.c
63
64version.c:
65 echo '#include "version.h"' > ${.TARGET}
66 echo 'const char version[] = ${VERSION};' >> ${.TARGET}
67 echo 'const char host_name[] = "${MACHINE_ARCH}-${VENDOR}-freebsd";' \
68 >> ${.TARGET}
69 echo 'const char target_name[] = "${TARGET_ARCH}-${VENDOR}-freebsd";' \
70 >> ${.TARGET}
71
72.include <bsd.lib.mk>