1993-06-29 09:48:26 +00:00
|
|
|
# @(#)Makefile 6.4 (Berkley) 5/6/91
|
|
|
|
|
|
|
|
PROG= gdb
|
|
|
|
GDBSRCS= blockframe.c breakpoint.c command.c copying.c core.c \
|
|
|
|
cplus-dem.c dbxread.c environ.c eval.c expprint.c \
|
|
|
|
expread.y findvar.c infcmd.c inflow.c infrun.c \
|
|
|
|
main.c obstack.c printcmd.c regex.c remote.c \
|
|
|
|
remote-sl.c source.c stack.c symmisc.c symtab.c \
|
|
|
|
utils.c valarith.c valops.c valprint.c values.c \
|
|
|
|
version.c
|
1994-05-09 18:13:54 +00:00
|
|
|
SRCS= $(CONFIGSRCS) $(GDBSRCS) init.c
|
|
|
|
CFLAGS+= -I. -I$(.CURDIR) -I$(.CURDIR)/config \
|
|
|
|
-DHAVE_VPRINTF -DKERNELDEBUG -DNEWVM
|
|
|
|
LDADD= -lreadline -ltermcap
|
1993-06-29 09:48:26 +00:00
|
|
|
YFLAGS=
|
1994-05-09 18:13:54 +00:00
|
|
|
.PATH: $(.CURDIR)/config
|
1993-06-29 09:48:26 +00:00
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
.include "config/Makefile.$(MACHINE)"
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
$(OBJS): param.h
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate the constructor
|
|
|
|
#
|
|
|
|
init.c: $(CONFIGSRCS) $(GDBSRCS) $(READLINESRCS)
|
|
|
|
-((cd $(.CURDIR)/config; \
|
|
|
|
egrep -h '^_initialize_[^ ]* *\(\)' $(CONFIGSRCS)); \
|
1994-05-09 18:13:54 +00:00
|
|
|
(cd $(.CURDIR); egrep -h '^_initialize_[^ ]* *\(\)' $(GDBSRCS))) | \
|
1993-06-29 09:48:26 +00:00
|
|
|
(echo 'void initialize_all_files () {'; sed -e 's/$$/;/'; echo '}') \
|
|
|
|
> init.c
|
|
|
|
|
|
|
|
CLEANFILES+= init.c param.h
|