166103Sbostic#Copyright 1989, 1990, 1991, 1992 Free Software Foundation, Inc. 266103Sbostic 366103Sbostic# This file is part of GDB. 466103Sbostic 566103Sbostic# This program is free software; you can redistribute it and/or modify 666103Sbostic# it under the terms of the GNU General Public License as published by 766103Sbostic# the Free Software Foundation; either version 2 of the License, or 866103Sbostic# (at your option) any later version. 966103Sbostic# 1066103Sbostic# This program is distributed in the hope that it will be useful, 1166103Sbostic# but WITHOUT ANY WARRANTY; without even the implied warranty of 1266103Sbostic# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1366103Sbostic# GNU General Public License for more details. 1466103Sbostic# 1566103Sbostic# You should have received a copy of the GNU General Public License 1666103Sbostic# along with this program; if not, write to the Free Software 1766103Sbostic# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 1866103Sbostic 1966103Sbosticprefix = /usr/local 2066103Sbostic 2166103Sbosticprogram_transform_name = 2266103Sbosticexec_prefix = $(prefix) 2366103Sbosticbindir = /usr/bin 2466103Sbosticlibdir = $(exec_prefix)/lib 2566103Sbostictooldir = $(libdir)/$(target_alias) 2666103Sbostic 2766103Sbosticdatadir = $(prefix)/lib 2866103Sbosticmandir = $(prefix)/man 2966103Sbosticman1dir = $(mandir)/man1 3066103Sbosticman2dir = $(mandir)/man2 3166103Sbosticman3dir = $(mandir)/man3 3266103Sbosticman4dir = $(mandir)/man4 3366103Sbosticman5dir = $(mandir)/man5 3466103Sbosticman6dir = $(mandir)/man6 3566103Sbosticman7dir = $(mandir)/man7 3666103Sbosticman8dir = $(mandir)/man8 3766103Sbosticman9dir = $(mandir)/man9 3866103Sbosticinfodir = $(prefix)/info 3966103Sbosticincludedir = $(prefix)/include 4066103Sbosticdocdir = $(datadir)/doc 4166103Sbostic 4266103SbosticSHELL = /bin/sh 4366103Sbostic 4466103Sbosticxbindir = /usr/bin/X11 4566103Sbosticxlibdir = /usr/lib/X11 4666103Sbostic 4766103SbosticINSTALL = install -c 4866103SbosticINSTALL_PROGRAM = $(INSTALL) 4966103SbosticINSTALL_DATA = $(INSTALL) 5066103Sbostic 5166103SbosticAR = ar 5266103SbosticAR_FLAGS = qv 5366103SbosticRANLIB = ranlib 5466103Sbostic 5566103Sbostic# Flags that describe where you can find the termcap library. 5666103Sbostic# This can be overridden in the host Makefile fragment file. 5766103SbosticTERMCAP = -ltermcap 5866103Sbostic 5966103Sbostic# System V: If you compile gdb with a compiler which uses the coff 6066103Sbostic# encapsulation feature (this is a function of the compiler used, NOT 6166103Sbostic# of the m-?.h file selected by config.gdb), you must make sure that 6266103Sbostic# the GNU nm is the one that is used by munch. 6366103Sbostic 6466103Sbostic# If you are compiling with GCC, make sure that either 1) You use the 6566103Sbostic# -traditional flag, or 2) You have the fixed include files where GCC 6666103Sbostic# can reach them. Otherwise the ioctl calls in inflow.c 6766103Sbostic# will be incorrectly compiled. The "fixincludes" script in the gcc 6866103Sbostic# distribution will fix your include files up. 6966103Sbostic#CC=cc 7066103Sbostic#CC=gcc -traditional 7166103SbosticCC=gcc -O2 7266103SbosticGCC=gcc 7366103Sbostic 7466103Sbostic# Directory containing source files. Don't clean up the spacing, 7566103Sbostic# this exact string is matched for by the "configure" script. 7666103Sbosticsrcdir = . 7766103Sbostic 7866103Sbostic# It is also possible that you will need to add -I/usr/include/sys to the 7966103Sbostic# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which 8066103Sbostic# is where it should be according to Posix). 8166103Sbostic 8266103SbosticBISON=yacc 8366103SbosticYACC=$(BISON) 8466103Sbostic 8566103Sbostic# Documentation (gdb.dvi) needs either GNU m4 or SysV m4; 8666103Sbostic# Berkeley/Sun don't have quite enough. 8766103Sbostic#M4=/usr/5bin/m4 8866103SbosticM4=gm4 8966103Sbostic 9066103Sbostic# where to find texinfo; GDB dist should include a recent one 9166103SbosticTEXIDIR=${srcdir}/../texinfo/fsf 9266103Sbostic 9366103Sbostic# where to find makeinfo, preferably one designed for texinfo-2 9466103SbosticMAKEINFO=makeinfo 9566103Sbostic 9666103Sbostic# Set this up with gcc if you have gnu ld and the loader will print out 9766103Sbostic# line numbers for undefinded refs. 9866103Sbostic#CC-LD=gcc -static 9966103SbosticCC-LD=${CC} 10066103Sbostic 10166103Sbostic# Where is the "include" directory? Traditionally ../include or ./include 10266103SbosticINCLUDE_DIR = ${srcdir}/../include 10366103SbosticINCLUDE_DEP = $$(INCLUDE_DIR) 10466103Sbostic 10566103Sbostic# Where is the source dir for the MMALLOC library? Traditionally ../mmalloc 10666103Sbostic# or ./mmalloc (When we want the binary library built from it, we use 10766103Sbostic# ${MMALLOC_DIR}${subdir}.) 10866103Sbostic# Note that mmalloc can still be used on systems without mmap(). 10966103Sbostic# To use your system malloc, comment out the following defines. 11066103SbosticMMALLOC_DIR = ${srcdir}/../mmalloc 11166103SbosticMMALLOC_DEP = $$(MMALLOC_DIR) 11266103SbosticMMALLOC_LIB = ./../mmalloc${subdir}/libmmalloc.a 11366103Sbostic# To use your system malloc, uncomment MMALLOC_DISABLE. 11466103Sbostic#MMALLOC_DISABLE = -DNO_MMALLOC 11566103Sbostic# To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK 11666103Sbostic#MMALLOC_CHECK = -DNO_MMALLOC_CHECK 11766103SbosticMMALLOC_CFLAGS = ${MMALLOC_CHECK} ${MMALLOC_DISABLE} 11866103Sbostic 11966103Sbostic# Where is the source dir for the BFD library? Traditionally ../bfd or ./bfd 12066103Sbostic# (When we want the binary library built from it, we use ${BFD_DIR}${subdir}.) 12166103SbosticBFD_DIR = ${srcdir}/../bfd 12266103SbosticBFD_DEP = $$(BFD_DIR) 12366103SbosticBFD_LIB = ./../bfd${subdir}/libbfd.a 12466103Sbostic 12566103Sbostic# Where is the source dir for the READLINE library? Traditionally in .. or . 12666103Sbostic# (For the binary library built from it, we use ${READLINE_DIR}${subdir}.) 12766103SbosticREADLINE_DIR = ${srcdir}/../readline 12866103SbosticREADLINE_DEP = $$(READLINE_DIR) 12966103SbosticRL_LIB = ./../readline${subdir}/libreadline.a 13066103Sbostic 13166103Sbostic# All the includes used for CFLAGS and for lint. 13266103Sbostic# -I. for config files. 13366103Sbostic# -I${srcdir} possibly for regex.h also. 13466103SbosticINCLUDE_CFLAGS = -I. -I${srcdir} -I$(INCLUDE_DIR) 13566103Sbostic 13666103Sbostic# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS 13766103Sbostic# from the config/ directory. 13866103SbosticGLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS} 13966103Sbostic#PROFILE_CFLAGS = -pg 14066103Sbostic 14166103Sbostic# CFLAGS is specifically reserved for setting from the command line 14266103Sbostic# when running make. I.E. "make USER_CFLAGS=-Wmissing-prototypes". 14366103SbosticCFLAGS = -g 14466103Sbostic# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. 14566103SbosticINTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS} 14666103Sbostic# None of the things in CFLAGS will do any harm, and on some systems 14766103Sbostic# (e.g. SunOS4) it is important to use the MH_CFLAGS. 14866103SbosticLDFLAGS = $(CFLAGS) 14966103Sbostic 15066103Sbostic# Where is the "-liberty" library, containing getopt and obstack? 15166103SbosticLIBIBERTY_DIR = ${srcdir}/../libiberty 15266103SbosticLIBIBERTY = ./../libiberty${subdir}/libiberty.a 15366103Sbostic 15466103Sbostic# Where is the "-lopcodes" library, with (some of) the opcode tables and 15566103Sbostic# disassemblers? 15666103SbosticOPCODES = ./../opcodes${subdir}/libopcodes.a 15766103Sbostic 15866103Sbostic# The config/mh-* file must define REGEX and REGEX1 on USG machines. 15966103Sbostic# If your sysyem is missing alloca(), or, more likely, it's there but 16066103Sbostic# it doesn't work, define ALLOCA & ALLOCA1 too. 16166103Sbostic 16266103Sbostic# Libraries and corresponding dependencies for compiling gdb. 16366103Sbostic# {X,T}M_CLIBS, defined in *config files, have host- and target-dependent libs. 16466103Sbostic# TERMCAP comes after readline, since readline depends on it. 16566103SbosticCLIBS = ${BFD_LIB} ${RL_LIB} ${TERMCAP} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} \ 16666103Sbostic ${XM_CLIBS} ${TM_CLIBS} ${NAT_CLIBS} 16766103SbosticCDEPS = ${XM_CDEPS} ${TM_CDEPS} ${NAT_CDEPS} \ 16866103Sbostic ${BFD_LIB} ${RL_LIB} ${OPCODES} ${MMALLOC_LIB} ${LIBIBERTY} 16966103Sbostic 17066103SbosticADD_FILES = ${REGEX} ${ALLOCA} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES} 17166103SbosticADD_DEPS = ${REGEX1} ${ALLOCA1} ${XM_ADD_FILES} ${TM_ADD_FILES} ${NAT_ADD_FILES} 17266103Sbostic 17366103SbosticVERSION = 4.7 17466103SbosticDIST=gdb 17566103Sbostic 17666103SbosticLINT=/usr/5bin/lint 17766103SbosticLINTFLAGS= -I${BFD_DIR} 17866103Sbostic 17966103Sbostic# Host and target-dependent makefile fragments come in here. 18066103Sbostic#### 18166103Sbostic# End of host and target-dependent makefile fragments 18266103SbosticLBL_SRC = kcore.c remote-sl.c remote-fp.c kernel.c cmdparse.c 18366103SbosticLBL_OBJ = $(LBL_SRC:.c=.o) 18466103Sbostic 18566103Sbostic#SYMREADERS = dbxread.c coffread.c elfread.c dwarfread.c \ 18666103Sbostic# xcoffread.c stabsread.c mipsread.c 18766103SbosticSYMREADERS = dbxread.c stabsread.c 18866103SbosticSYMREADOBJ = $(SYMREADERS:.c=.o) 18966103Sbostic 19066103SbosticFLAGS_TO_PASS = \ 19166103Sbostic "against=$(against)" \ 19266103Sbostic "AR=$(AR)" \ 19366103Sbostic "AR_FLAGS=$(AR_FLAGS)" \ 19466103Sbostic "CC=$(CC)" \ 19566103Sbostic "CFLAGS=$(CFLAGS) $(MT_CFLAGS)" \ 19666103Sbostic "RANLIB=$(RANLIB)" \ 19766103Sbostic "MAKEINFO=$(MAKEINFO)" \ 19866103Sbostic "INSTALL=$(INSTALL)" \ 19966103Sbostic "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ 20066103Sbostic "INSTALL_DATA=$(INSTALL_DATA)" \ 20166103Sbostic "BISON=$(BISON)" 20266103Sbostic 20366103Sbostic# Source files in the main directory. 20466103Sbostic# Files which are included via a config/* Makefile fragment 20566103Sbostic# should *not* be specified here; they're in "ALLDEPFILES". 20666103SbosticSFILES_MAINDIR = \ 20766103Sbostic blockframe.c breakpoint.c command.c core.c demangle.c \ 20866103Sbostic environ.c eval.c expprint.c findvar.c infcmd.c inflow.c infrun.c \ 20966103Sbostic main.c printcmd.c gdbtypes.c \ 21066103Sbostic remote.c source.c stack.c symmisc.c symtab.c symfile.c \ 21166103Sbostic utils.c valarith.c valops.c valprint.c values.c c-exp.y m2-exp.y \ 21266103Sbostic mem-break.c target.c \ 21366103Sbostic $(SYMREADERS) \ 21466103Sbostic ieee-float.c language.c parse.c buildsym.c objfiles.c \ 21566103Sbostic minsyms.c maint.c \ 21666103Sbostic $(LBL_SRC) xgdb.c 21766103Sbostic 21866103Sbostic# Source files in subdirectories (which will be handled separately by 21966103Sbostic# 'make gdb.tar.Z'). 22066103Sbostic# Files which are included via a config/* Makefile fragment 22166103Sbostic# should *not* be specified here; they're in "ALLDEPFILES". 22266103SbosticSFILES_SUBDIR = \ 22366103Sbostic ${srcdir}/vx-share/dbgRpcLib.h \ 22466103Sbostic ${srcdir}/vx-share/ptrace.h \ 22566103Sbostic ${srcdir}/vx-share/reg.h \ 22666103Sbostic ${srcdir}/vx-share/vxTypes.h \ 22766103Sbostic ${srcdir}/vx-share/vxWorks.h \ 22866103Sbostic ${srcdir}/vx-share/wait.h \ 22966103Sbostic ${srcdir}/vx-share/xdr_ld.h \ 23066103Sbostic ${srcdir}/vx-share/xdr_ptrace.h \ 23166103Sbostic ${srcdir}/vx-share/xdr_rdb.h \ 23266103Sbostic ${srcdir}/vx-share/xdr_regs.h \ 23366103Sbostic ${srcdir}/nindy-share/b.out.h \ 23466103Sbostic ${srcdir}/nindy-share/block_io.h \ 23566103Sbostic ${srcdir}/nindy-share/coff.h \ 23666103Sbostic ${srcdir}/nindy-share/demux.h \ 23766103Sbostic ${srcdir}/nindy-share/env.h \ 23866103Sbostic ${srcdir}/nindy-share/stop.h \ 23966103Sbostic ${srcdir}/nindy-share/ttycntl.h 24066103Sbostic 24166103Sbostic# Non-source files in subdirs, that should go into gdb.tar.Z. 24266103SbosticNONSRC_SUBDIR = \ 24366103Sbostic ${srcdir}/nindy-share/Makefile \ 24466103Sbostic ${srcdir}/nindy-share/VERSION \ 24566103Sbostic ${srcdir}/nindy-share/README \ 24666103Sbostic ${srcdir}/vx-share/README 24766103Sbostic 24866103Sbostic# All source files that go into linking GDB, except config-specified files. 24966103SbosticSFILES = $(SFILES_MAINDIR) $(SFILES_SUBDIR) 25066103Sbostic 25166103Sbostic# All source files that lint should look at 25266103SbosticLINTFILES = $(SFILES) $(YYFILES) init.c 25366103Sbostic 25466103Sbostic# Any additional files specified on these lines should also be added to 25566103Sbostic# the OTHERS = definition below, so they go in the tar files. 25666103SbosticSFILES_STAND = $(SFILES) standalone.c 25766103SbosticSFILES_KGDB = $(SFILES) stuff.c kdb-start.c 25866103Sbostic 25966103Sbostic# Header files that are not named in config/* Makefile fragments go here. 26066103SbosticHFILES= breakpoint.h buildsym.h call-cmds.h command.h defs.h \ 26166103Sbostic environ.h expression.h frame.h gdbcmd.h gdbcore.h gdbtypes.h \ 26266103Sbostic gdb-stabs.h ieee-float.h inferior.h language.h \ 26366103Sbostic minimon.h objfiles.h parser-defs.h partial-stab.h \ 26466103Sbostic serial.h signals.h solib.h symfile.h symtab.h stabsread.h \ 26566103Sbostic target.h terminal.h xcoffsolib.h value.h \ 26666103Sbostic tm-68k.h tm-hppa.h tm-i960.h tm-sparc.h tm-sunos.h tm-sysv4.h \ 26766103Sbostic xm-m68k.h xm-sparc.h xm-sysv4.h xm-vax.h \ 26866103Sbostic nm-i386bsd.h nm-i386mach.h nm-i386sco.h nm-i386v.h nm-i386v4.h nm-irix3.h \ 26966103Sbostic nm-irix4.h nm-linux.h nm-m88k.h nm-mips.h nm-news.h nm-rs6000.h \ 27066103Sbostic nm-sun2.h nm-sun3.h nm-sun386.h nm-sun4os4.h nm-trash.h \ 27166103Sbostic nm-ultra3.h nm-hppab.h nm-hppah.h nm-umax.h nm-sysv4.h 27266103Sbostic 27366103SbosticREMOTE_EXAMPLES = m68k-stub.c i386-stub.c sparc-stub.c rem-multi.shar 27466103Sbostic 27566103SbosticPOSSLIBS_MAINDIR = regex.c regex.h alloca.c 27666103SbosticPOSSLIBS = $(POSSLIBS_MAINDIR) 27766103Sbostic 27866103SbosticTESTS = testbpt.c testfun.c testrec.c testreg.c testregs.c 27966103Sbostic 28066103SbosticOTHERS = Makefile.in depend alldeps.mak createtags munch configure.in \ 28166103Sbostic ChangeLog ChangeLog-9091 ChangeLog-3.x gdb.1 refcard.ps \ 28266103Sbostic README TODO TAGS NEWS Projects \ 28366103Sbostic .gdbinit COPYING $(YYFILES) \ 28466103Sbostic copying.c Convex.notes copying.awk \ 28566103Sbostic saber.suppress standalone.c stuff.c kdb-start.c \ 28666103Sbostic putenv.c gcc.patch XGDB-README 28766103Sbostic 28866103Sbostic# Subdirectories of gdb, which should be included in their entirety in 28966103Sbostic# gdb-xxx.tar.Z: 29066103SbosticTARDIRS = doc # tests 29166103Sbostic 29266103Sbostic# GDB "info" files, which should be included in their entirety 29366103SbosticINFOFILES = gdb.info* 29466103Sbostic 29566103SbosticDEPFILES= ${TDEPFILES} ${XDEPFILES} ${NATDEPFILES} 29666103Sbostic 29766103SbosticSOURCES=$(SFILES) $(ALLDEPFILES) $(YYFILES) 29866103SbosticTAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS} 29966103SbosticTAGFILES_MAINDIR = $(SFILES_MAINDIR) $(ALLDEPFILES_MAINDIR) \ 30066103Sbostic ${HFILES} ${ALLPARAM} ${POSSLIBS_MAINDIR} 30166103SbosticTARFILES = ${TAGFILES_MAINDIR} ${OTHERS} ${REMOTE_EXAMPLES} 30266103Sbostic 30366103SbosticOBS = version.o main.o blockframe.o breakpoint.o findvar.o stack.o source.o \ 30466103Sbostic values.o eval.o valops.o valarith.o valprint.o printcmd.o \ 30566103Sbostic symtab.o symfile.o symmisc.o infcmd.o infrun.o remote.o \ 30666103Sbostic command.o utils.o expprint.o environ.o gdbtypes.o \ 30766103Sbostic copying.o $(DEPFILES) mem-break.o target.o \ 30866103Sbostic ieee-float.o putenv.o parse.o language.o $(YYOBJ) \ 30966103Sbostic buildsym.o objfiles.o minsyms.o maint.o demangle.o \ 31066103Sbostic $(SYMREADOBJ) core.o \ 31166103Sbostic $(LBL_OBJ) 31266103Sbostic 31366103SbosticRAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES) 31466103Sbostic 31566103SbosticTSOBS = inflow.o 31666103Sbostic 31766103SbosticNTSOBS = standalone.o 31866103Sbostic 31966103SbosticTSSTART = /lib/crt0.o 32066103Sbostic 32166103SbosticNTSSTART = kdb-start.o 32266103Sbostic 32366103SbosticSUBDIRS = doc 32466103Sbostic 32566103Sbostic# For now, shortcut the "configure GDB for fewer languages" stuff. 32666103SbosticYYFILES = c-exp.tab.c m2-exp.tab.c 32766103SbosticYYOBJ = c-exp.tab.o m2-exp.tab.o 32866103Sbostic 32966103Sbostic# Prevent Sun make from putting in the machine type. Setting 33066103Sbostic# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1. 33166103Sbostic.c.o: 33266103Sbostic ${CC} -c ${INTERNAL_CFLAGS} $< 33366103Sbostic 33466103Sbosticall: gdb 33566103Sbostic $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) 33666103Sbosticcheck: 33766103Sbosticinfo: force 33866103Sbostic $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) 33966103Sbosticinstall-info: force 34066103Sbostic $(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) 34166103Sbosticclean-info: force 34266103Sbostic $(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) 34366103Sbostic 34466103Sbosticinstall.xgdb: xgdb 34566103Sbostic rm -f $(xbindir)/xgdb 34666103Sbostic install xgdb $(xbindir) 34766103Sbostic install Xgdb.ad $(xlibdir)/app-defaults/Xgdb 34866103Sbostic 34966103Sbosticgdb.z:gdb.1 35066103Sbostic nroff -man $(srcdir)/gdb.1 | col -b > gdb.t 35166103Sbostic pack gdb.t ; rm -f gdb.t 35266103Sbostic mv gdb.t.z gdb.z 35366103Sbostic 35466103Sbosticinstall: gdb 355*66104Sbostic install -s gdb /usr/contrib/bin 35666103Sbostic 35766103Sbosticinit.c: $(srcdir)/munch $(OBS) $(TSOBS) 35866103Sbostic $(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) > init.c 35966103Sbostic 36066103Sbosticxinit.c: $(srcdir)/munch $(OBS) $(TSOBS) xgdb.o 36166103Sbostic rm -f xinit.c 36266103Sbostic ./munch ${MUNCH_DEFINE} $(OBS) $(TSOBS) xgdb.o > xinit.c 36366103Sbostic 36466103Sbosticxgdb: $(OBS) $(TSOBS) xgdb.o xinit.o ${ADD_DEPS} 36566103Sbostic $(CC-LD) $(LDFLAGS) -o xgdb xinit.o xgdb.o \ 36666103Sbostic $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES) \ 36766103Sbostic -lXaw -lXmu -lXt -lXext -lX11 -lXwchar -lX11 36866103Sbostic 36966103Sbosticgdb: $(OBS) $(TSOBS) ${ADD_DEPS} ${CDEPS} init.o 37066103Sbostic ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdb \ 37166103Sbostic init.o $(OBS) $(TSOBS) $(ADD_FILES) $(CLIBS) $(LOADLIBES) 37266103Sbostic 37366103Sbosticsaber_gdb: $(SFILES) $(DEPFILES) copying.c version.c 37466103Sbostic #setopt load_flags $(CFLAGS) -I$(BFD_DIR) -DHOST_SYS=SUN4_SYS 37566103Sbostic #load ./init.c $(SFILES) 37666103Sbostic #unload ${srcdir}/c-exp.y ${srcdir}/m2-exp.y ${srcdir}/vx-share/*.h 37766103Sbostic #unload ${srcdir}/nindy-share/[A-Z]* 37866103Sbostic #load c-exp.tab.c m2-exp.tab.c 37966103Sbostic #load copying.c version.c 38066103Sbostic #load ../opcodes/libopcodes.a 38166103Sbostic #load ../libiberty/libiberty.a 38266103Sbostic #load ../bfd/libbfd.a 38366103Sbostic #load ../readline/libreadline.a 38466103Sbostic #load ../mmalloc/libmmalloc.a 38566103Sbostic #load -ltermcap 38666103Sbostic #load `echo " "$(DEPFILES) | sed -e 's/\.o/.c/g' -e 's, , ../,g'` 38766103Sbostic echo "Load .c corresponding to:" $(DEPFILES) 38866103Sbostic 38966103Sbostic 39066103Sbostic# This is useful when debugging GDB, because some Unix's don't let you run GDB 39166103Sbostic# on itself without copying the executable. So "make gdb1" will make 39266103Sbostic# gdb and put a copy in gdb1, and you can run it with "gdb gdb1". 39366103Sbostic# Removing gdb1 before the copy is the right thing if gdb1 is open 39466103Sbostic# in another process. 39566103Sbosticgdb1: gdb 39666103Sbostic rm -f gdb1 39766103Sbostic cp gdb gdb1 39866103Sbostic 39966103Sbostic# This is a remote stub which runs under unix and starts up an 40066103Sbostic# inferior process. This is at least useful for debugging GDB's 40166103Sbostic# remote support. 40266103Sbosticrapp: $(RAPP_OBS) 40366103Sbostic rm -f rapp_init.c 40466103Sbostic ${srcdir}/munch ${MUNCH_DEFINE} ${RAPP_OBS} > rapp_init.c 40566103Sbostic ${CC-LD} $(LDFLAGS) -o $@ rapp_init.c $(RAPP_OBS) 40666103Sbostic 40766103Sbostic# Support for building Makefile out of configured pieces, automatically 40866103Sbostic# generated dependencies, etc. alldeps.mak is a file that contains 40966103Sbostic# "make" variable definitions for all ALLDEPFILES, ALLDEPFILES_MAINDIR, 41066103Sbostic# ALLDEPFILES_SUBDIR, ALLPARAM, and ALLCONFIG, all cadged from the current 41166103Sbostic# contents of the config subdirectory. 41266103Sbostic 41366103Sbosticalldeps.mak: ${srcdir}/config 41466103Sbostic rm -f alldeps.mak alldeps.tmp allparam.tmp allconfig.tmp 41566103Sbostic for i in `ls -d ${srcdir}/config/*.m[ht]` ; do \ 41666103Sbostic echo $$i >>allconfig.tmp; \ 41766103Sbostic awk <$$i ' \ 41866103Sbostic $$1 == "TDEPFILES=" || $$1 == "XDEPFILES=" \ 41966103Sbostic || $$1 == "NATDEPFILES=" { \ 42066103Sbostic for (i = 2; i <= NF; i++) \ 42166103Sbostic print $$i >> "alldeps.tmp" ; \ 42266103Sbostic } \ 42366103Sbostic $$1 == "TM_FILE=" || $$1 == "XM_FILE=" || $$1 == "NAT_FILE" { \ 42466103Sbostic print $$2 >> "allparam.tmp" }' ; \ 42566103Sbostic done 42666103Sbostic sort <alldeps.tmp | uniq | \ 42766103Sbostic sed -e 's/arm-convert.o/arm-convert.s/' \ 42866103Sbostic -e 's!^Onindy.o!nindy-share/Onindy.c!' \ 42966103Sbostic -e 's!^nindy.o!nindy-share/nindy.c!' \ 43066103Sbostic -e 's!ttybreak.o!nindy-share/ttybreak.c!' \ 43166103Sbostic -e 's!ttyflush.o!nindy-share/ttyflush.c!' \ 43266103Sbostic -e 's!xdr_ld.o!vx-share/xdr_ld.c!' \ 43366103Sbostic -e 's!xdr_ptrace.o!vx-share/xdr_ptrace.c!' \ 43466103Sbostic -e 's!xdr_rdb.o!vx-share/xdr_rdb.c!' \ 43566103Sbostic -e 's!xdr_regs.o!vx-share/xdr_regs.c!' \ 43666103Sbostic -e 's/\.o/.c/' \ 43766103Sbostic >alldeps2.tmp 43866103Sbostic echo '# Start of "alldeps.mak" definitions' \ 43966103Sbostic >>alldeps.mak; 44066103Sbostic echo 'ALLDEPFILES = $$(ALLDEPFILES_MAINDIR) $$(ALLDEPFILES_SUBDIR)' \ 44166103Sbostic >>alldeps.mak; 44266103Sbostic grep -v / alldeps2.tmp | \ 44366103Sbostic awk 'BEGIN {printf "ALLDEPFILES_MAINDIR="} \ 44466103Sbostic NR == 0 {printf $$0;} \ 44566103Sbostic NR != 0 {printf "\\\n" $$0} \ 44666103Sbostic END {printf "\n\n"}' >>alldeps.mak; 44766103Sbostic grep / alldeps2.tmp | \ 44866103Sbostic awk 'BEGIN {printf "ALLDEPFILES_SUBDIR="} \ 44966103Sbostic NR == 0 {printf $$0;} \ 45066103Sbostic NR != 0 {printf "\\\n" $$0} \ 45166103Sbostic END {printf "\n\n"}' >>alldeps.mak; 45266103Sbostic sort <allparam.tmp | uniq | awk 'BEGIN {printf "ALLPARAM="} \ 45366103Sbostic NR == 0 {printf $$0;} \ 45466103Sbostic NR != 0 {printf "\\\n" $$0} \ 45566103Sbostic END {printf "\n\n"}' >>alldeps.mak; 45666103Sbostic sort <allconfig.tmp | uniq | awk 'BEGIN {printf "ALLCONFIG="} \ 45766103Sbostic NR == 0 {printf $$0;} \ 45866103Sbostic NR != 0 {printf "\\\n" $$0} \ 45966103Sbostic END {printf "\n\n"}' >>alldeps.mak; 46066103Sbostic echo '# End of "alldeps.mak" definitions' \ 46166103Sbostic >>alldeps.mak; 46266103Sbostic rm -f alldeps.tmp alldeps2.tmp allparam.tmp allconfig.tmp 46366103Sbostic 46466103Sbostic# The sed script makes everything which depends on {x,t}m.h depend on 46566103Sbostic# config.status as well, in case someone reconfigures gdb out from 46666103Sbostic# under an already compiled gdb. 46766103Sbosticdepend: $(SOURCES) Makefile.in 46866103Sbostic @echo Ignore errors about non-existent system-supplied include files 46966103Sbostic @echo for systems other than the one you are using. 47066103Sbostic @echo Also ignore parse errors in valops.c, and any errors in 47166103Sbostic @echo arm-convert.s. 47266103Sbostic touch xm.h tm.h 47366103Sbostic -$(GCC) -MM -nostdinc -I/usr/include $(CFLAGS) -I$(BFD_DIR) \ 47466103Sbostic -I${READLINE_DIR} $(INCLUDE_CFLAGS) \ 47566103Sbostic `ls $(SOURCES) | grep -v '\.[hy]$$' | \ 47666103Sbostic sort -u` >depend.tmp 47766103Sbostic# If running in srcdir, translate "./foo.c" into "$srcdir/foo.c" except 47866103Sbostic# for xm.h and tm.h. This allows the same "depend" file to be used 47966103Sbostic# by the various subdirectories. 48066103Sbostic if [ "${srcdir}" = "." ] ; then \ 48166103Sbostic <depend.tmp sed \ 48266103Sbostic -e 's; ./xm.h; xm.h;g' \ 48366103Sbostic -e 's; ./tm.h; tm.h;g' \ 48466103Sbostic -e 's; \./; $${srcdir}/;g' \ 48566103Sbostic -e 's; vx-share/; $${srcdir}/vx-share/;g' \ 48666103Sbostic -e 's; nindy-share/; $${srcdir}/nindy-share/;g' \ 48766103Sbostic >depend.tm2; \ 48866103Sbostic rm depend.tmp; \ 48966103Sbostic mv depend.tm2 depend.tmp; \ 49066103Sbostic fi 49166103Sbostic <depend.tmp sed \ 49266103Sbostic -e 's; [xt]m.h;& config.status;g' \ 49366103Sbostic -e 's; $(INCLUDE_DIR)/; $(INCLUDE_DEP)/;g' \ 49466103Sbostic -e 's; $(READLINE_DIR)/; $(READLINE_DEP)/;g' \ 49566103Sbostic -e 's; [a-z0-9./]*bfd/; $(BFD_DEP)/;g' \ 49666103Sbostic -e 's; ./xm.h; xm.h config.status;g' \ 49766103Sbostic -e 's; ./tm.h; tm.h config.status;g' \ 49866103Sbostic >depend 49966103Sbostic rm depend.tmp 50066103Sbostic 50166103Sbosticconfig.status: 50266103Sbostic @echo "You must configure gdb. Look at the README file for details." 50366103Sbostic @false 50466103Sbostic 50566103Sbostic# This checks the configure.in file versus the config/ directory. 50666103Sbosticconfig-check: config-check-hosts config-check-targets 50766103Sbosticconfig-check-hosts: 50866103Sbostic grep gdb_host= ${srcdir}/configure.in | \ 50966103Sbostic sed -e 's/.*gdb_host=//' -e 's/ ;;$$/.mh/' | sort -u >HOSTconf.o 51066103Sbostic (cd ${srcdir}/config; ls *.mh) >HOSTdir.o 51166103Sbostic diff -u HOSTconf.o HOSTdir.o 51266103Sbostic 51366103Sbosticconfig-check-targets: 51466103Sbostic grep gdb_target= ${srcdir}/configure.in | \ 51566103Sbostic sed -e 's/.*gdb_target=//' -e 's/ ;;$$/.mh/' | sort -u >TARGconf.o 51666103Sbostic (cd ${srcdir}/config; ls *.mt) >TARGdir.o 51766103Sbostic diff -u HOSTconf.o HOSTdir.o 51866103Sbostic 51966103Sbostic# These are not generated by "make depend" because they only are there 52066103Sbostic# for some machines. 52166103Sbostic# But these rules don't do what we want; we want to hack the foo.o: tm.h 52266103Sbostic# dependency to do the right thing. 52366103Sbostictm-isi.h tm-sun3.h tm-news.h tm-hp300bsd.h tm-altos.h: tm-68k.h 52466103Sbostictm-hp300hpux.h tm-sun2.h tm-3b1.h: tm-68k.h 52566103Sbosticxm-news1000.h: xm-news.h 52666103Sbosticxm-i386-sv32.h: xm-i386.h 52766103Sbostictm-i386gas.h: tm-i386.h 52866103Sbosticxm-sun4os4.h: xm-sparc.h 52966103Sbostictm-sun4os4.h: tm-sparc.h 53066103Sbosticxm-vaxult.h: xm-vax.h 53166103Sbosticxm-vaxbsd.h: xm-vax.h 53266103Sbostic 53366103Sbostickdb: $(NTSSTART) $(OBS) $(NTSOBS) ${ADD_DEPS} ${CDEPS} 53466103Sbostic rm -f init.c 53566103Sbostic $(srcdir)/munch ${MUNCH_DEFINE} $(OBS) $(NTSOBS) > init.c 53666103Sbostic $(CC) $(LDFLAGS) -c init.c $(CLIBS) 53766103Sbostic ld -o kdb $(NTSSTART) $(OBS) $(NTSOBS) init.o $(ADD_FILES) \ 53866103Sbostic -lc $(CLIBS) 53966103Sbostic 54066103Sbostic# Put the proper machine-specific files first. 54166103Sbostic# createtags will edit the .o in DEPFILES into .c 54266103SbosticTAGS: ${TAGFILES} 54366103Sbostic $(srcdir)/createtags $(TM_FILE) ${XM_FILE} ${NAT_FILE} \ 54466103Sbostic $(DEPFILES) ${TAGFILES} 54566103Sbostictags: TAGS 54666103Sbostic 54766103Sbostic# Making distributions of GDB and friends. 54866103Sbostic 54966103Sbostic# Make a directory `proto-gdb.dir' that contains an image of the GDB 55066103Sbostic# directory of the distribution, built up with symlinks. 55166103Sbosticmake-proto-gdb.dir: force_update 55266103Sbostic $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist 55366103Sbostic $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1 55466103Sbostic 55566103Sbostic# Make a tar file containing the GDB directory of the distribution. 55666103Sbosticgdb.tar.Z: force_update 55766103Sbostic $(MAKE) $(MFLAGS) -f Makefile.in setup-to-dist 55866103Sbostic $(MAKE) $(MFLAGS) -f Makefile.in gdb-$(VERSION).tar.Z 55966103Sbostic 56066103Sbostic# Update the "alldeps.mak" file in a source directory. 56166103Sbosticupdate-alldeps: force_update 56266103Sbostic ../configure none -norecursion 56366103Sbostic rm -f alldeps.mak 56466103Sbostic $(MAKE) $(MFLAGS) alldeps.mak 56566103Sbostic 56666103Sbostic# Update the "depend" and "alldeps.mak" files in a source directory. 56766103Sbostic# We update alldeps.mak first, since it is used to generate the list 56866103Sbostic# of files to be checked for dependencies. 56966103Sbosticupdate-depend: update-alldeps force_update 57066103Sbostic ../configure none -norecursion 57166103Sbostic rm -f depend 57266103Sbostic $(MAKE) $(MFLAGS) depend 57366103Sbostic 57466103Sbostic# Set up the GDB source directory for distribution, by building all files that 57566103Sbostic# are products of other files. 57666103Sbosticsetup-to-dist: update-depend force_update 57766103Sbostic ../configure none 57866103Sbostic (cd doc; $(MAKE) $(MFLAGS) gdbVN.m4) 57966103Sbostic $(MAKE) $(MFLAGS) gdb.info 58066103Sbostic $(MAKE) $(MFLAGS) refcard.ps 58166103Sbostic 58266103Sbostic# Build a tar file from a proto-gdb.dir. 58366103Sbosticgdb-$(VERSION).tar.Z: force_update 58466103Sbostic rm -f gdb.tar gdb-$(VERSION).tar.Z 58566103Sbostic $(MAKE) $(MFLAGS) -f Makefile make-proto-gdb-1 58666103Sbostic ln -s proto-gdb.dir $(DIST) 58766103Sbostic tar chf - $(DIST) | compress >gdb-$(VERSION).tar.Z 58866103Sbostic rm -rf $(DIST) proto-gdb.dir 58966103Sbostic 59066103Sbostic# Build a proto-gdb.dir after GDB has been set up for distribution. 59166103Sbostic# This stuff must be run in `Makefile', not `Makefile.in`; we use the makefile 59266103Sbostic# built in the setup-to-dist process, since it defines things like ALLCONFIG 59366103Sbostic# and ALLDEPFILES, that we need. 59466103Sbosticmake-proto-gdb-1: ${TARFILES} ${TARDIRS} gdb.info 59566103Sbostic rm -rf proto-gdb.dir 59666103Sbostic mkdir proto-gdb.dir 59766103Sbostic cd proto-gdb.dir ; for i in ${TARFILES} ; do ln -s ../$$i . ; done 59866103Sbostic cd proto-gdb.dir ; ln -s ../${INFOFILES} . 59966103Sbostic cd proto-gdb.dir ; for i in ${TARDIRS}; do \ 60066103Sbostic mkdir $$i; cd $$i; \ 60166103Sbostic ln -s ../../$$i/* .; \ 60266103Sbostic rm -rf SCCS CVS.adm RCS config.status; \ 60366103Sbostic if test -f Makefile.in; then rm Makefile; else true; fi; done 60466103Sbostic mkdir proto-gdb.dir/config 60566103Sbostic cd proto-gdb.dir/config ; \ 60666103Sbostic for i in $(ALLCONFIG) ; do ln -s ../../$$i ../$$i ; done 60766103Sbostic mkdir proto-gdb.dir/vx-share proto-gdb.dir/nindy-share 60866103Sbostic cd proto-gdb.dir/config ; \ 60966103Sbostic for i in $(SFILES_SUBDIR) $(NONSRC_SUBDIR) $(ALLDEPFILES_SUBDIR); \ 61066103Sbostic do ln -s ../../$$i ../$$i ; done 61166103Sbostic chmod og=u `find . -print` 61266103Sbostic 61366103Sbosticclean: 61466103Sbostic rm -f *.o ${ADD_FILES} *~ 61566103Sbostic rm -f init.c version.c 61666103Sbostic rm -f gdb core gdb.tar gdb.tar.Z make.log 61766103Sbostic rm -f gdb[0-9] 61866103Sbostic rm -f xgdb.o xgdb 61966103Sbostic @$(MAKE) subdir_do DO=clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) 62066103Sbostic 62166103Sbosticdistclean: clean c-exp.tab.c m2-exp.tab.c TAGS 62266103Sbostic rm -f tm.h xm.h config.status 62366103Sbostic rm -f y.output yacc.acts yacc.tmp 62466103Sbostic rm -f ${TESTS} Makefile depend 62566103Sbostic @$(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) 62666103Sbostic 62766103Sbosticrealclean: clean 62866103Sbostic rm -f c-exp.tab.c m2-exp.tab.c TAGS 62966103Sbostic rm -f tm.h xm.h config.status 63066103Sbostic rm -f Makefile depend 63166103Sbostic @$(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) 63266103Sbostic 63366103SbosticSTAGESTUFF=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb 63466103Sbostic 63566103Sbosticsubdir_do: force 63666103Sbostic @for i in $(DODIRS); do \ 63766103Sbostic if [ -d ./$$i ] ; then \ 63866103Sbostic if (cd ./$$i; \ 63966103Sbostic $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; then true ; \ 64066103Sbostic else exit 1 ; fi ; \ 64166103Sbostic else true ; fi ; \ 64266103Sbostic done 64366103Sbostic 64466103SbosticMakefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) 64566103Sbostic $(SHELL) ./config.status 64666103Sbostic 64766103Sbosticforce: 64866103Sbostic 64966103Sbostic# Documentation! 65066103Sbostic# GDB QUICK REFERENCE (TeX dvi file, CM fonts) 65166103Sbosticrefcard.dvi: $(srcdir)/doc/refcard.tex 65266103Sbostic ( cd ./doc; $(MAKE) refcard.dvi $(FLAGS_TO_PASS) ) 65366103Sbostic mv ./doc/refcard.dvi . 65466103Sbostic 65566103Sbostic# GDB QUICK REFERENCE (PostScript output, common PS fonts) 65666103Sbosticrefcard.ps: $(srcdir)/doc/refcard.tex 65766103Sbostic ( cd ./doc; $(MAKE) refcard.ps $(FLAGS_TO_PASS) ) 65866103Sbostic mv ./doc/refcard.ps . 65966103Sbostic 66066103Sbostic# GDB MANUAL: TeX dvi file 66166103Sbosticgdb.dvi: ./doc/gdb-all.texi 66266103Sbostic ( cd ./doc; $(MAKE) M4=$(M4) gdb.dvi $(FLAGS_TO_PASS) ) 66366103Sbostic mv ./doc/gdb.dvi . 66466103Sbostic 66566103Sbostic# GDB MANUAL: info file 66666103Sbosticgdb.info: ./doc/gdb-all.texi 66766103Sbostic ( cd ./doc; $(MAKE) M4=$(M4) gdb.info $(FLAGS_TO_PASS) ) 66866103Sbostic mv ./doc/gdb.info* . 66966103Sbostic 67066103Sbostic./doc/gdb-all.texi: 67166103Sbostic (cd ./doc; $(MAKE) M4=$(M4) gdb-all.texi $(FLAGS_TO_PASS) ) 67266103Sbostic 67366103Sbostic# Make copying.c from COPYING 67466103Sbosticcopying.c: ${srcdir}/COPYING ${srcdir}/copying.awk 67566103Sbostic awk -f ${srcdir}/copying.awk < ${srcdir}/COPYING > copying.c 67666103Sbostic 67766103Sbosticversion.c: Makefile 67866103Sbostic echo 'char *version = "$(VERSION)";' >version.c 67966103Sbostic 68066103Sbostic# c-exp.tab.c is generated in target dir from c-exp.y if it doesn't exist 68166103Sbostic# in srcdir, then compiled in target dir to c-exp.tab.o. 68266103Sbostic# Remove bogus decls for malloc/realloc/free which conflict with everything 68366103Sbostic# else. 68466103Sbosticc-exp.tab.o: c-exp.tab.c 68566103Sbosticc-exp.tab.c: $(srcdir)/c-exp.y 68666103Sbostic @echo 'Expect 4 shift/reduce conflicts.' 68766103Sbostic ${YACC} $(srcdir)/c-exp.y 68866103Sbostic -sed -e '/extern.*malloc/d' \ 68966103Sbostic -e '/extern.*realloc/d' \ 69066103Sbostic -e '/extern.*free/d' \ 69166103Sbostic < y.tab.c > c-exp.tab.c 69266103Sbostic -rm y.tab.c 69366103Sbostic 69466103Sbostic# m2-exp.tab.c is generated in target dir from m2-exp.y if it doesn't exist 69566103Sbostic# in srcdir, then compiled in target dir to m2-exp.tab.o. 69666103Sbosticm2-exp.tab.o: m2-exp.tab.c 69766103Sbosticm2-exp.tab.c: $(srcdir)/m2-exp.y 69866103Sbostic ${YACC} $(srcdir)/m2-exp.y 69966103Sbostic -sed -e '/extern.*malloc/d' \ 70066103Sbostic -e '/extern.*realloc/d' \ 70166103Sbostic -e '/extern.*free/d' \ 70266103Sbostic < y.tab.c > m2-exp.tab.c 70366103Sbostic -rm y.tab.c 70466103Sbostic 70566103Sbosticxgdb.o: defs.h symtab.h frame.h 70666103Sbostic 70766103Sbosticmain.o: ${srcdir}/main.c 70866103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I${READLINE_DIR} $< 70966103Sbostic 71066103Sbostic# The symbol-file readers have dependencies on BFD header files. 71166103Sbosticdbxread.o: ${srcdir}/dbxread.c 71266103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/dbxread.c 71366103Sbostic 71466103Sbosticcoffread.o: ${srcdir}/coffread.c 71566103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/coffread.c 71666103Sbostic 71766103Sbosticmipsread.o: ${srcdir}/mipsread.c 71866103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/mipsread.c 71966103Sbostic 72066103Sbosticelfread.o: ${srcdir}/elfread.c 72166103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/elfread.c 72266103Sbostic 72366103Sbosticdwarfread.o: ${srcdir}/dwarfread.c 72466103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/dwarfread.c 72566103Sbostic 72666103Sbosticstabsread.o: ${srcdir}/stabsread.c 72766103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/stabsread.c 72866103Sbostic 72966103Sbosticxcoffread.o: ${srcdir}/xcoffread.c 73066103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/xcoffread.c 73166103Sbostic 73266103Sbosticxcoffexec.o: ${srcdir}/xcoffexec.c 73366103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -I$(BFD_DIR) ${srcdir}/xcoffexec.c 73466103Sbostic 73566103Sbostic# Drag in the files that are in another directory. 73666103Sbostic 73766103Sbosticxdr_ld.o: ${srcdir}/vx-share/xdr_ld.c 73866103Sbostic ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_ld.c 73966103Sbostic 74066103Sbosticxdr_ptrace.o: ${srcdir}/vx-share/xdr_ptrace.c 74166103Sbostic ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_ptrace.c 74266103Sbostic 74366103Sbosticxdr_rdb.o: ${srcdir}/vx-share/xdr_rdb.c 74466103Sbostic ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_rdb.c 74566103Sbostic 74666103Sbosticxdr_regs.o: ${srcdir}/vx-share/xdr_regs.c 74766103Sbostic ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/vx-share/xdr_regs.c 74866103Sbostic 74966103Sbosticnindy.o: ${srcdir}/nindy-share/nindy.c 75066103Sbostic ${CC} -c ${INTERNAL_CFLAGS} -DSTRIP='"$(tooldir)/bin/strip"' \ 75166103Sbostic ${srcdir}/nindy-share/nindy.c 75266103Sbostic 75366103SbosticOnindy.o: ${srcdir}/nindy-share/Onindy.c 75466103Sbostic ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/Onindy.c 75566103Sbostic 75666103Sbosticttybreak.o: ${srcdir}/nindy-share/ttybreak.c 75766103Sbostic ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttybreak.c 75866103Sbostic 75966103Sbosticttyflush.o: ${srcdir}/nindy-share/ttyflush.c 76066103Sbostic ${CC} -c ${INTERNAL_CFLAGS} ${srcdir}/nindy-share/ttyflush.c 76166103Sbostic 76266103Sbosticlint: $(LINTFILES) 76366103Sbostic $(LINT) $(INCLUDE_CFLAGS) $(LINTFLAGS) $(LINTFILES) \ 76466103Sbostic `echo ${DEPFILES} | sed 's/\.o /\.c /g' 76566103Sbostic 76666103Sbosticgdb.cxref: $(SFILES) 76766103Sbostic cxref -I. $(SFILES) >gdb.cxref 76866103Sbostic 76966103Sbosticforce_update: 77066103Sbostic 77166103Sbostic# GNU Make has an annoying habit of putting *all* the Makefile variables 77266103Sbostic# into the environment, unless you include this target as a circumvention. 77366103Sbostic# Rumor is that this will be fixed (and this target can be removed) 77466103Sbostic# in GNU Make 4.0. 77566103Sbostic.NOEXPORT: 77666103Sbostic 77766103Sbostic# This is the end of "Makefile.in". When built into "Makefile" 77866103Sbostic# by the configure script, two things are added below this point: 77966103Sbostic# alldeps.mak -- defintions of all files that are used in 78066103Sbostic# host- or target-dependent configurations 78166103Sbostic# depend -- what .o files depend on what .c and .h files, 78266103Sbostic# for all configurations. 78366103Sbostic 78466103Sbostic 785