Annotation of gdb/Makefile, revision 1.1.1.5

1.1.1.4   root        1: # Makefile for GDB
                      2: #   Copyright (C) 1986, 1988 Free Software Foundation, Inc.
                      3: #
                      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.
                      9: #
                     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.
                     16: #
                     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!
                     19: 
                     20: 
                     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.
                     25: 
1.1       root       26: # -I. for "#include <obstack.h>"
1.1.1.3   root       27: CFLAGS = -g -I.
1.1.1.2   root       28: # NOTE!!! -O  may FAIL TO WORK!  See initialize.h for some weird hacks.
                     29: 
1.1       root       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.
1.1.1.3   root       33: OBSTACK = obstack.o
                     34: OBSTACK1 = obstack.o
1.1       root       35: 
1.1.1.4   root       36: CLIBS = $(OBSTACK)
                     37: 
1.1       root       38: STARTOBS = main.o firstfile.o
                     39: 
                     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 \
1.1.1.3   root       42:     symtab.o symmisc.o coffread.o dbxread.o infcmd.o infrun.o remote.o
1.1       root       43: 
                     44: TSOBS = core.o inflow.o
                     45: 
                     46: NTSOBS = standalone.o
                     47: 
                     48: ENDOBS = lastfile.o command.o utils.o expread.o expprint.o pinsn.o \
                     49:        environ.o version.o
                     50: 
                     51: TSSTART = /lib/crt0.o
                     52: 
                     53: NTSSTART = kdb-start.o
                     54: 
1.1.1.5 ! root       55: gdb+ : $(STARTOBS) $(OBS) $(TSOBS) $(ENDOBS) $(OBSTACK1)
        !            56:        $(CC) $(LDFLAGS) -o gdb+ $(STARTOBS) $(OBS) $(TSOBS) $(ENDOBS) $(CLIBS)
1.1.1.2   root       57: 
1.1.1.5 ! root       58: xgdb+ : $(STARTOBS) $(OBS) $(TSOBS) xgdb.o $(ENDOBS) $(OBSTACK1)
        !            59:        $(CC) $(LDFLAGS) -o xgdb+ $(STARTOBS) $(OBS) $(TSOBS) xgdb.o $(ENDOBS) \
1.1.1.4   root       60:            -lXaw -lXt -lX11 $(CLIBS)
1.1       root       61: 
                     62: kdb : $(NTSSTART) $(STARTOBS) $(OBS) $(NTSOBS) $(ENDOBS) $(OBSTACK1)
1.1.1.4   root       63:        ld -o kdb $(NTSSTART) $(STARTOBS) $(OBS) $(NTSOBS) $(ENDOBS) -lc $(CLIBS)
1.1       root       64: 
                     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
1.1.1.2   root       68: coffread.o : coffread.c defs.h initialize.h param.h symtab.h
1.1       root       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
1.1.1.4   root       74:        @echo 'Expect 96 shift/reduce conflicts.'
                     75:        yacc expread.y
                     76:        mv y.tab.c expread.tab.c
1.1       root       77: expread.o : expread.tab.c defs.h param.h symtab.h frame.h expression.h
1.1.1.2   root       78:        $(CC) -c ${CFLAGS} expread.tab.c
1.1       root       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 \
1.1.1.5 ! root       92:     vax-opcode.h vax-pinsn.c m68k-opcode.h m68k-pinsn.c sparc-opcode.h sparc-pinsn.c
1.1       root       93: printcmd.o : printcmd.c defs.h initialize.h param.h symtab.h value.h expression.h
1.1.1.3   root       94: remote.o : remote.c defs.h initialize.h param.h frame.h inferior.h
1.1       root       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
1.1.1.4   root      103: valprint.o : valprint.c defs.h initialize.h param.h symtab.h value.h
1.1       root      104: values.o : values.c defs.h initialize.h param.h symtab.h value.h
                    105: version.o : version.c
1.1.1.2   root      106: xgdb.o : xgdb.c defs.h initialize.h param.h symtab.h frame.h
                    107:        $(CC) -c $(CFLAGS) xgdb.c -o $@
1.1       root      108: 
                    109: obstack.o : obstack.c

unix.superglobalmegacorp.com