Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # -I. for "#include <obstack.h>"
  2. CFLAGS = -g -I.
  3. # define this to be "obstack.o" if you don't have the obstack library installed
  4. # you must at the same time define OBSTACK1 as "obstack.o"
  5. # so that the dependencies work right.
  6. #OBSTACK = -lobstack
  7. OBSTACK = obstack.o
  8. OBSTACK1 =
  9. STARTOBS = main.o firstfile.o
  10. OBS = blockframe.o breakpoint.o findvar.o stack.o source.o \
  11. values.o eval.o valops.o valarith.o valprint.o printcmd.o \
  12. symtab.o symmisc.o dbxread.o infcmd.o infrun.o
  13. TSOBS = core.o inflow.o
  14. NTSOBS = standalone.o
  15. ENDOBS = lastfile.o command.o utils.o expread.o expprint.o pinsn.o \
  16. environ.o version.o
  17. TSSTART = /lib/crt0.o
  18. NTSSTART = kdb-start.o
  19. gdb : $(STARTOBS) $(OBS) $(TSOBS) $(ENDOBS) $(OBSTACK1)
  20. ld -o gdb $(TSSTART) $(STARTOBS) $(OBS) $(TSOBS) $(ENDOBS) -lc -lg $(OBSTACK)
  21. kdb : $(NTSSTART) $(STARTOBS) $(OBS) $(NTSOBS) $(ENDOBS) $(OBSTACK1)
  22. ld -o kdb $(NTSSTART) $(STARTOBS) $(OBS) $(NTSOBS) $(ENDOBS) -lc -lg $(OBSTACK)
  23. blockframe.o : blockframe.c defs.h initialize.h param.h symtab.h frame.h
  24. breakpoint.o : breakpoint.c defs.h initialize.h param.h symtab.h frame.h
  25. command.o : command.c command.h
  26. core.o : core.c defs.h initialize.h param.h
  27. dbxread.o : dbxread.c defs.h initialize.h param.h symtab.h
  28. environ.o : environ.c environ.h
  29. expprint.o : expprint.c defs.h symtab.h expression.h
  30. expread.tab.c : expread.y
  31. @echo 'Expect 96 shift/reduce conflicts.'
  32. yacc expread.y
  33. mv y.tab.c expread.tab.c
  34. expread.o : expread.tab.c defs.h param.h symtab.h frame.h expression.h
  35. cc -c ${CFLAGS} expread.tab.c
  36. mv expread.tab.o expread.o
  37. eval.o : eval.c defs.h initialize.h symtab.h value.h expression.h
  38. findvar.o : findvar.c defs.h initialize.h param.h symtab.h frame.h value.h
  39. firstfile.o : firstfile.c initialize.h
  40. infcmd.o : infcmd.c defs.h initialize.h param.h symtab.h frame.h inferior.h environ.h value.h
  41. inflow.o : inflow.c defs.h initialize.h param.h frame.h inferior.h
  42. infrun.o : infrun.c defs.h initialize.h param.h symtab.h frame.h inferior.h wait.h
  43. kdb-start.o : kdb-start.c defs.h param.h
  44. lastfile.o : lastfile.c
  45. main.o : main.c defs.h command.h
  46. # pinsn.o depends on ALL the opcode printers
  47. # since we don't know which one is really being used.
  48. pinsn.o : pinsn.c defs.h param.h symtab.h \
  49. vax-opcode.h vax-pinsn.c m68k-opcode.h m68k-pinsn.c
  50. printcmd.o : printcmd.c defs.h initialize.h param.h symtab.h value.h expression.h
  51. source.o : source.c defs.h initialize.h symtab.h
  52. stack.o : stack.c defs.h initialize.h param.h symtab.h frame.h
  53. standalone.o : standalone.c defs.h initialize.h param.h symtab.h frame.h inferior.h wait.h
  54. symmisc.o : symmisc.c defs.h initialize.h symtab.h
  55. symtab.o : symtab.c defs.h initialize.h param.h symtab.h
  56. utils.o : utils.c defs.h
  57. valarith.o : valarith.c defs.h initialize.h param.h symtab.h value.h expression.h
  58. valops.o : valops.c defs.h initialize.h param.h symtab.h value.h
  59. valprint.o : valprint.c defs.h initialize.h symtab.h value.h
  60. values.o : values.c defs.h initialize.h param.h symtab.h value.h
  61. version.o : version.c
  62. obstack.o : obstack.c