logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

Makefile (2007B)


  1. # SPDX-FileCopyrightText: 2002-2022 Thomas E. Dickey
  2. # SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
  3. #
  4. # SPDX-License-Identifier: CC0-1.0
  5. #
  6. # From original byacc README:
  7. # Berkeley Yacc is in the public domain. The data structures and algorithms
  8. # used in Berkeley Yacc are all either taken from documents available to the
  9. # general public or are inventions of the author. Anyone may freely distribute
  10. # source or binary forms of Berkeley Yacc whether unchanged or modified.
  11. # Distributers may charge whatever fees they can obtain for Berkeley Yacc.
  12. # Programs generated by Berkeley Yacc may be distributed freely.
  13. #
  14. # (typo "Distributers" in original)
  15. DEST = .
  16. HDRS = defs.h
  17. CFLAGS ?= -O -DNDEBUG
  18. LDFLAGS ?=
  19. LIBS ?=
  20. LINKER ?= $(CC)
  21. MAKEFILE = Makefile
  22. OBJS = closure.o \
  23. error.o graph.o \
  24. lalr.o \
  25. lr0.o \
  26. main.o \
  27. mkpar.o mstring.o \
  28. output.o \
  29. reader.o \
  30. symtab.o \
  31. verbose.o \
  32. warshall.o yaccpar.o
  33. PRINT = pr -f -l88
  34. PROGRAM = yacc
  35. SRCS = closure.c \
  36. error.c graph.c \
  37. lalr.c \
  38. lr0.c \
  39. main.c \
  40. mkpar.c mstring.c \
  41. output.c \
  42. reader.c \
  43. symtab.c \
  44. verbose.c \
  45. warshall.c yaccpar.c
  46. all: $(PROGRAM)
  47. $(PROGRAM): $(OBJS) $(LIBS)
  48. @$(LINKER) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
  49. clean:; @rm -f $(OBJS)
  50. clobber:; @rm -f $(OBJS) $(PROGRAM)
  51. depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
  52. index:; @ctags -wx $(HDRS) $(SRCS)
  53. install: $(PROGRAM)
  54. @echo Installing $(PROGRAM) in $(DEST)
  55. @install -s $(PROGRAM) $(DEST)
  56. listing:; @$(PRINT) Makefile $(HDRS) $(SRCS) | lpr
  57. lint:; @lint $(SRCS)
  58. program: $(PROGRAM)
  59. tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
  60. ###
  61. closure.o: defs.h
  62. error.o: defs.h
  63. lalr.o: defs.h
  64. lr0.o: defs.h
  65. main.o: defs.h
  66. mkpar.o: defs.h
  67. output.o: defs.h
  68. reader.o: defs.h
  69. symtab.o: defs.h
  70. verbose.o: defs.h
  71. warshall.o: defs.h
  72. btyaccpar.o: defs.h
  73. yaccpar.o: defs.h
  74. graph.o: defs.h
  75. mstring.o: defs.h