makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #
  2. # makefile
  3. #
  4. # Based on Anthonys Editor January 93
  5. #
  6. # Public Domain 1991, 1993 by Anthony Howe. No warranty.
  7. # BSD 3-Clause 2023 by Kevin Bloom.
  8. #
  9. INSTALL_PATH = /usr/pkg/bin/
  10. MAN_PATH = /usr/pkg/man/man1/
  11. CC = cc
  12. CFLAGS = -O -Wall
  13. LD = cc
  14. LDFLAGS =
  15. CP = cp
  16. MV = mv
  17. RM = rm
  18. E =
  19. O = .o
  20. OBJ = command$(O) display$(O) gap$(O) key$(O) search$(O) buffer$(O) replace$(O) window$(O) complete$(O) hilite$(O) util$(O) shell$(O) main$(O)
  21. ait$(E) : $(OBJ)
  22. $(LD) $(LDFLAGS) -o ait$(E) $(OBJ) $(LIBS)
  23. command$(O): command.c
  24. $(CC) $(CFLAGS) -c command.c
  25. complete$(O): complete.c
  26. $(CC) $(CFLAGS) -c complete.c
  27. display$(O): display.c
  28. $(CC) $(CFLAGS) -c display.c
  29. gap$(O): gap.c
  30. $(CC) $(CFLAGS) -c gap.c
  31. key$(O): key.c
  32. $(CC) $(CFLAGS) -c key.c
  33. search$(O): search.c
  34. $(CC) $(CFLAGS) -c search.c
  35. replace$(O): replace.c
  36. $(CC) $(CFLAGS) -c replace.c
  37. window$(O): window.c
  38. $(CC) $(CFLAGS) -c window.c
  39. buffer$(O): buffer.c
  40. $(CC) $(CFLAGS) -c buffer.c
  41. hilite$(O): hilite.c
  42. $(CC) $(CFLAGS) -c hilite.c
  43. util$(O): util.c
  44. $(CC) $(CFLAGS) -c util.c
  45. shell$(O): shell.c
  46. $(CC) $(CFLAGS) -c shell.c
  47. main$(O): main.c
  48. $(CC) $(CFLAGS) -c main.c
  49. clean:
  50. -$(RM) $(OBJ) ait$(E)
  51. install:
  52. -$(CP) ait$(E) $(INSTALL_PATH)
  53. -$(CP) ait.1 $(MAN_PATH)