2 # Copyright (C) 1986, 1988 Free Software Foundation, Inc.
4 #GDB is distributed in the hope that it will be useful, but WITHOUT ANY
5 #WARRANTY. No author or distributor accepts responsibility to anyone
6 #for the consequences of using it or for whether it serves any
7 #particular purpose or works at all, unless he says so in writing.
8 #Refer to the GDB General Public License for full details.
10 #Everyone is granted permission to copy, modify and redistribute GDB,
11 #but only under the conditions described in the GDB General Public
12 #License. A copy of this license is supposed to have been given to you
13 #along with GDB so you can know your rights and responsibilities. It
14 #should be in a file named COPYING. Among other things, the copyright
15 #notice and this notice must be preserved on all copies.
17 #In other words, go ahead and share GDB, but don't try to stop
18 #anyone else from sharing it farther. Help stamp out software hoarding!
21 # On HPUX, you need to add -Ihpux to CFLAGS.
22 # The headers in the subdir hpux override system headers
23 # and tell GDB to use BSD executable file format.
24 # You also need to add -lGNU to CLIBS, and perhaps CC = gcc.
26 # -I. for "#include <obstack.h>"
28 # NOTE!!! -O may FAIL TO WORK! See initialize.h for some weird hacks.
30 # define this to be "obstack.o" if you don't have the obstack library installed
31 # you must at the same time define OBSTACK1 as "obstack.o"
32 # so that the dependencies work right.
38 STARTOBS
= main.o firstfile.o
40 OBS
= blockframe.o breakpoint.o findvar.o stack.o source.o \
41 values.o eval.o valops.o valarith.o valprint.o printcmd.o \
42 symtab.o symmisc.o coffread.o dbxread.o infcmd.o infrun.o remote.o
44 TSOBS
= core.o inflow.o
48 ENDOBS
= lastfile.o command.o utils.o expread.o expprint.o pinsn.o \
53 NTSSTART
= kdb-start.o
55 gdb
+ : $(STARTOBS
) $(OBS
) $(TSOBS
) $(ENDOBS
) $(OBSTACK1
)
56 $(CC
) $(LDFLAGS
) -o gdb
+ $(STARTOBS
) $(OBS
) $(TSOBS
) $(ENDOBS
) $(CLIBS
)
58 xgdb
+ : $(STARTOBS
) $(OBS
) $(TSOBS
) xgdb.o
$(ENDOBS
) $(OBSTACK1
)
59 $(CC
) $(LDFLAGS
) -o xgdb
+ $(STARTOBS
) $(OBS
) $(TSOBS
) xgdb.o
$(ENDOBS
) \
60 -lXaw
-lXt
-lX11
$(CLIBS
)
62 kdb
: $(NTSSTART
) $(STARTOBS
) $(OBS
) $(NTSOBS
) $(ENDOBS
) $(OBSTACK1
)
63 ld -o kdb
$(NTSSTART
) $(STARTOBS
) $(OBS
) $(NTSOBS
) $(ENDOBS
) -lc
$(CLIBS
)
65 blockframe.o
: blockframe.c defs.h initialize.h param.h symtab.h frame.h
66 breakpoint.o
: breakpoint.c defs.h initialize.h param.h symtab.h frame.h
67 command.o
: command.c command.h
68 coffread.o
: coffread.c defs.h initialize.h param.h symtab.h
69 core.o
: core.c defs.h initialize.h param.h
70 dbxread.o
: dbxread.c defs.h initialize.h param.h symtab.h
71 environ.o
: environ.c environ.h
72 expprint.o
: expprint.c defs.h symtab.h expression.h
73 expread.tab.c
: expread.y
74 @echo
'Expect 96 shift/reduce conflicts.'
76 mv y.tab.c expread.tab.c
77 expread.o
: expread.tab.c defs.h param.h symtab.h frame.h expression.h
78 $(CC
) -c
${CFLAGS} expread.tab.c
79 mv expread.tab.o expread.o
80 eval.o
: eval.c defs.h initialize.h symtab.h value.h expression.h
81 findvar.o
: findvar.c defs.h initialize.h param.h symtab.h frame.h value.h
82 firstfile.o
: firstfile.c initialize.h
83 infcmd.o
: infcmd.c defs.h initialize.h param.h symtab.h frame.h inferior.h environ.h value.h
84 inflow.o
: inflow.c defs.h initialize.h param.h frame.h inferior.h
85 infrun.o
: infrun.c defs.h initialize.h param.h symtab.h frame.h inferior.h wait.h
86 kdb-start.o
: kdb-start.c defs.h param.h
87 lastfile.o
: lastfile.c
88 main.o
: main.c defs.h command.h
89 # pinsn.o depends on ALL the opcode printers
90 # since we don't know which one is really being used.
91 pinsn.o
: pinsn.c defs.h param.h symtab.h \
92 vax-opcode.h vax-pinsn.c m68k-opcode.h m68k-pinsn.c sparc-opcode.h sparc-pinsn.c
93 printcmd.o
: printcmd.c defs.h initialize.h param.h symtab.h value.h expression.h
94 remote.o
: remote.c defs.h initialize.h param.h frame.h inferior.h
95 source.o
: source.c defs.h initialize.h symtab.h
96 stack.o
: stack.c defs.h initialize.h param.h symtab.h frame.h
97 standalone.o
: standalone.c defs.h initialize.h param.h symtab.h frame.h inferior.h wait.h
98 symmisc.o
: symmisc.c defs.h initialize.h symtab.h
99 symtab.o
: symtab.c defs.h initialize.h param.h symtab.h
100 utils.o
: utils.c defs.h
101 valarith.o
: valarith.c defs.h initialize.h param.h symtab.h value.h expression.h
102 valops.o
: valops.c defs.h initialize.h param.h symtab.h value.h
103 valprint.o
: valprint.c defs.h initialize.h param.h symtab.h value.h
104 values.o
: values.c defs.h initialize.h param.h symtab.h value.h
105 version.o
: version.c
106 xgdb.o
: xgdb.c defs.h initialize.h param.h symtab.h frame.h
107 $(CC
) -c
$(CFLAGS
) xgdb.c
-o
$@
109 obstack.o
: obstack.c