NetBSD/gnu/usr.bin/gdb/xgdb/Makefile

34 lines
975 B
Makefile
Raw Normal View History

1993-03-21 12:45:37 +03:00
# %W% (Berkeley) %G%
.include "../config/Makefile.$(MACHINE)"
PROG= xgdb
SRCS= xgdb.c xgdbinit.c
GDBOBJS+= $(CONFIGSRCS:R:S/$/.o/g) \
blockframe.o breakpoint.o command.o copying.o core.o \
cplus-dem.o dbxread.o environ.o eval.o expprint.o \
expread.o findvar.o infcmd.o inflow.o infrun.o \
main.o obstack.o printcmd.o regex.o remote.o \
remote-sl.o source.o stack.o symmisc.o symtab.o \
utils.o valarith.o valops.o valprint.o values.o \
version.o \
funmap.o history.o keymaps.o readline.o
CFLAGS+= -I.. -I$(.CURDIR)/.. -I$(.CURDIR)/../config \
-DHAVE_VPRINTF -DVI_MODE -DKERNELDEBUG
LDFLAGS+= -L/usr/lib/X11
LDADD+= $(GDBOBJS:S/^/..\//g) -lXaw -lXmu -lXt -lXext -lX11 -ltermcap
NOMAN= noman
.include "../../Makefile.inc"
.include <bsd.prog.mk>
#
# Generate the constructor
#
xgdbinit.c: ../init.c xgdb.c
-(sed -e '/^}$$/d' ../init.c; \
egrep -h '^_initialize_[^ ]* *\(\)' $(.CURDIR)/xgdb.c; \
echo ';}') > xgdbinit.c
CLEANFILES+= xgdbinit.c