/contrib/ee/make.default

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 57 lines · 44 code · 13 blank · 0 comment · 0 complexity · 3aa33b8008bb88619cc85b01d2b947d2 MD5 · raw file

  1. # This is the make file for ee, the "easy editor".
  2. #
  3. # If building ee using curses, type "make curses", otherwise new_curse (a
  4. # subset of curses that supports ee) will be built and ee will use new_curse
  5. # instead of curses.
  6. #
  7. # The "install" target ("make install") will copy the ee binary to
  8. # the /usr/local/bin directory on the local system. The man page (ee.1)
  9. # will be copied into the /usr/local/man/man1 directory.
  10. #
  11. # The "clean" target ("make clean") will remove the ee and new_curse.o
  12. # object files, and the ee binary.
  13. #
  14. # If the system does not have localization routines, use the -DNO_CATGETS
  15. # define. If the system supports setlocale(), catopen(), and catgets() and
  16. # localization is desired, do not use -DNO_CATGETS.
  17. #
  18. # DEFINES is used for new_curse.c, and CFLAGS is used for ee.c.
  19. #
  20. # for System V, using new_curse with terminfo
  21. DEFINES = -DSYS5 -DNCURSE
  22. # for BSD, using new_curse with termcap
  23. #DEFINES = -DCAP -DNCURSE
  24. # for BSD systems with select(), using new_curse with termcap, use:
  25. #DEFINES = -DCAP -DNCURSE -DBSD_SELECT
  26. # flags for compilation
  27. CFLAGS = -s -DNO_CATGETS
  28. # For Sun systems, remove the '#' from the front of the next two lines:
  29. #DEFINES = -DSYS5 -DNCURSE
  30. #CFLAGS = -I/usr/5include -L/usr/5lib -DNO_CATGETS -s
  31. all : ee
  32. curses : ee.c
  33. cc ee.c -o ee $(CFLAGS) -lcurses
  34. ee : ee.o new_curse.o
  35. cc -o ee ee.o new_curse.o $(CFLAGS)
  36. ee.o : ee.c new_curse.h
  37. cc -c ee.c $(DEFINES) $(CFLAGS)
  38. new_curse.o : new_curse.c new_curse.h
  39. cc new_curse.c -c $(DEFINES) $(CFLAGS)
  40. install :
  41. cp ee /usr/local/bin/ee
  42. cp ee.1 /usr/local/man/man1/ee.1
  43. clean :
  44. rm -f ee.o new_curse.o ee