Use the YACC source for c-exp.y and f-exp.y, not the pre-built
[dragonfly.git] / gnu / usr.bin / gdb / gdb / Makefile
CommitLineData
71120764 1# $DragonFly: src/gnu/usr.bin/gdb/gdb/Makefile,v 1.5 2004/11/17 12:27:59 joerg Exp $
b6fca148
JS
2
3.include "../Makefile.inc"
4
5PROG= gdb
6
fef1e844
JS
7SUBDIR= doc
8
b6fca148
JS
9CONTRIBDIR= ${BASEDIR}/gdb
10.PATH: ${CONTRIBDIR} ${CONTRIBDIR}/cli ${CONTRIBDIR}/mi ${CONTRIBDIR}/signals
11.PATH: ${CONTRIBDIR}/tui
12
13CFLAGS+= -I${.OBJDIR} -I${.CURDIR} -I${BASEDIR}/include -I${BASEDIR}/bfd
14CFLAGS+= -I${CONTRIBDIR} -I${CONTRIBDIR}/config -I${.CURDIR}/../libbfd
15CFLAGS+= -I${BASEDIR}
16
17.if defined(GDB_TUI)
18CFLAGS+= -DTUI=1
19SRCS= tui-main.c
20.else
21SRCS= gdb.c
22.endif
23
24CLEANFILES+= nm.h observer.h observer.inc tm.h xm.h
25
26SRCS+= nm.h observer.h tm.h xm.h
27
28# libgdb
29SRCS+= annotate.c arch-utils.c auxv.c ax-gdb.c ax-general.c bcache.c
30SRCS+= bfd-target.c block.c blockframe.c breakpoint.c bsd-kvm.c buildsym.c
71120764 31SRCS+= c-exp.y c-lang.c c-typeprint.c c-valprint.c charset.c cli-cmds.c
b6fca148
JS
32SRCS+= cli-decode.c cli-dump.c cli-interp.c cli-logging.c cli-out.c
33SRCS+= cli-script.c cli-setshow.c cli-utils.c coff-pe-read.c coffread.c
34SRCS+= complaints.c completer.c copying.c corefile.c corelow.c cp-abi.c
35SRCS+= cp-namespace.c cp-support.c cp-valprint.c dbxread.c dcache.c demangle.c
36SRCS+= dictionary.c disasm.c doublest.c dummy-frame.c dwarf2-frame.c
37SRCS+= dwarf2expr.c dwarf2loc.c dwarf2read.c dwarfread.c elfread.c environ.c
71120764 38SRCS+= eval.c event-loop.c event-top.c exec.c expprint.c f-exp.y f-lang.c
b6fca148
JS
39SRCS+= f-typeprint.c f-valprint.c fbsd-proc.c findvar.c fork-child.c
40SRCS+= frame-base.c frame-unwind.c frame.c gcore.c gdb-events.c gdbarch.c
41SRCS+= gdbtypes.c gnu-v2-abi.c gnu-v3-abi.c hpacc-abi.c inf-loop.c infcall.c
42SRCS+= infcmd.c inflow.c infptrace.c infrun.c inftarg.c init.c interps.c
43SRCS+= jv-exp.y jv-lang.c jv-typeprint.c jv-valprint.c kod-cisco.c kod.c
44SRCS+= language.c linespec.c m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c
45SRCS+= macrocmd.c macroexp.c macroscope.c macrotab.c main.c maint.c
46SRCS+= mdebugread.c mem-break.c memattr.c mi-cmd-break.c mi-cmd-disas.c
47SRCS+= mi-cmd-env.c mi-cmd-file.c mi-cmd-stack.c mi-cmd-var.c mi-cmds.c
48SRCS+= mi-console.c mi-getopt.c mi-interp.c mi-main.c mi-out.c
49SRCS+= mi-parse.c mi-symbol-cmds.c minsyms.c mipsread.c nlmread.c objc-exp.y
50SRCS+= objc-lang.c objfiles.c observer.c osabi.c p-exp.y p-lang.c
51SRCS+= p-typeprint.c p-valprint.c parse.c printcmd.c regcache.c reggroups.c
52SRCS+= regset.c remote-fileio.c remote-utils.c remote.c scm-exp.c scm-lang.c
53SRCS+= scm-valprint.c sentinel-frame.c ser-pipe.c ser-tcp.c ser-unix.c
1cf7a554
JS
54SRCS+= serial.c signals.c solib-legacy.c solib-svr4.c solib.c source.c
55SRCS+= stabsread.c
b6fca148
JS
56SRCS+= stack.c std-regs.c symfile.c symmisc.c symtab.c target.c thread.c
57SRCS+= top.c tracepoint.c trad-frame.c tramp-frame.c typeprint.c
58SRCS+= ui-file.c ui-out.c user-regs.c utils.c valarith.c valops.c valprint.c
59SRCS+= values.c varobj.c version.c wrapper.c
60# tui specific
61.if defined(GDB_TUI)
62SRCS+= tui.c tui-command.c tui-data.c tui-disasm.c tui-file.c tui-hooks.c
63SRCS+= tui-interp.c tui-io.c tui-layout.c tui-out.c tui-regs.c tui-source.c
64SRCS+= tui-stack.c tui-win.c tui-windata.c tui-wingeneral.c tui-winsource.c
65.endif
66# kernel-debugger
67PATCHES!= echo ${.CURDIR}/patches/*.patch
68SRCS+= freebsd-uthread.c kvm-fbsd.c kvm-fbsd.h ${PATCHES}
69
70DPADD= ${LIBREADLINE} ${LIBKVM} ${LIBTERMCAP} ${LIBM}
71DPADD+= ../libbfd/libbfd.a ../libopcodes/libopcodes.a ../libiberty/libiberty.a
72LDADD= -lreadline -lkvm -ltermcap -lm
73LDADD+= -L../libbfd -lbfd -L../libopcodes -lopcodes -L../libiberty -liberty
74
6d924690
JS
75.include "Makefile.${MACHINE_ARCH}"
76
b6fca148
JS
77init.c: ${SRCS:Ninit.c} Makefile
78 echo '#include "defs.h"' > ${.TARGET}
79 echo '#include "call-cmds.h"' >> ${.TARGET}
80 sed -n -e 's/^_initialize_\([a-z_0-9A-Z]*\).*/extern initialize_file_ftype _initialize_\1;/p' ${.ALLSRC:M*.c} >> ${.TARGET}
81 echo 'void' >> ${.TARGET}
82 echo 'initialize_all_files(void)' >> ${.TARGET}
83 echo '{' >> ${.TARGET}
84 sed -n -e 's/^_initialize_\([a-z_0-9A-Z]*\).*/ _initialize_\1 ();/p' ${.ALLSRC:M*.c} >> ${.TARGET}
85 echo '}' >> ${.TARGET}
86
87# observer.inc can't be included in SRCS, it would duplicate the entry in OBJS
88observer.h: observer.sh observer.inc doc/observer.texi
89 sh ${CONTRIBDIR}/observer.sh h ${CONTRIBDIR}/doc/observer.texi ${.TARGET}
90observer.inc: observer.sh doc/observer.texi
91 sh ${CONTRIBDIR}/observer.sh inc ${CONTRIBDIR}/doc/observer.texi ${.TARGET}
92
93nm.h: nm-fbsd.h
94 cp ${.ALLSRC} ${.TARGET}
95
b6fca148 96.include <bsd.prog.mk>