makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. CC = cc
  10. CFLAGS = -O -Wall
  11. LD = cc
  12. LDFLAGS =
  13. CP = cp
  14. MV = mv
  15. RM = rm
  16. E =
  17. O = .o
  18. 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)
  19. ait$(E) : $(OBJ)
  20. $(LD) $(LDFLAGS) -o ait$(E) $(OBJ) $(LIBS)
  21. command$(O): command.c
  22. $(CC) $(CFLAGS) -c command.c
  23. complete$(O): complete.c
  24. $(CC) $(CFLAGS) -c complete.c
  25. display$(O): display.c
  26. $(CC) $(CFLAGS) -c display.c
  27. gap$(O): gap.c
  28. $(CC) $(CFLAGS) -c gap.c
  29. key$(O): key.c
  30. $(CC) $(CFLAGS) -c key.c
  31. search$(O): search.c
  32. $(CC) $(CFLAGS) -c search.c
  33. replace$(O): replace.c
  34. $(CC) $(CFLAGS) -c replace.c
  35. window$(O): window.c
  36. $(CC) $(CFLAGS) -c window.c
  37. buffer$(O): buffer.c
  38. $(CC) $(CFLAGS) -c buffer.c
  39. hilite$(O): hilite.c
  40. $(CC) $(CFLAGS) -c hilite.c
  41. util$(O): util.c
  42. $(CC) $(CFLAGS) -c util.c
  43. shell$(O): shell.c
  44. $(CC) $(CFLAGS) -c shell.c
  45. main$(O): main.c
  46. $(CC) $(CFLAGS) -c main.c
  47. clean:
  48. -$(RM) $(OBJ) ait$(E)
  49. install:
  50. -$(MV) ait$(E) /usr/local/bin/