patch-Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $OpenBSD: patch-Makefile,v 1.5 2017/05/12 20:27:25 naddy Exp $
  2. Index: Makefile
  3. --- Makefile.orig
  4. +++ Makefile
  5. @@ -20,19 +20,19 @@ NAME=SC
  6. # packaging this with an O/S, for example, you'll probably want to change
  7. # this to /usr. Otherwise, /usr/local is probably more appropriate, unless
  8. # you're replacing the vendor-supplied version.
  9. -prefix=/usr
  10. +LOCALBASE=${LOCALBASE}
  11. # This is where the install step puts it.
  12. -EXDIR=${prefix}/bin
  13. +EXDIR=${PREFIX}/bin
  14. # This is where the man page goes.
  15. -MANDIR=${prefix}/man/man1
  16. +MANDIR=${PREFIX}/man/man1
  17. MANEXT=1
  18. MANMODE=644
  19. # This is where the library file (tutorial) goes.
  20. #LIBDIR=/usr/local/share/$(name) # reno
  21. -LIBDIR=${prefix}/lib/$(name)
  22. +LIBDIR=${PREFIX}/share/$(name)
  23. LIBRARY=-DLIBDIR=\"${LIBDIR}\"
  24. # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
  25. @@ -331,13 +331,19 @@ LN=ln
  26. #########################################
  27. # Use this for Linux
  28. -CC=gcc
  29. +#CC=gcc
  30. # Only use -Wall for testing, since it produces warnings that are of no
  31. # real effect on the reliability of the program, but may concern some
  32. # people who don't understand them.
  33. #CFLAGS=-DSYSV3 -O2 -Wall -pipe
  34. -CFLAGS=-DSYSV3 -O2 -pipe
  35. -LIB=-lm -lncurses
  36. +#CFLAGS=-DSYSV3 -O2 -pipe
  37. +#LIB=-lm -lncurses
  38. +
  39. +#########################################
  40. +# Use this for OpenBSD
  41. +CC?=cc
  42. +LIB=-lm -lcurses -ltermcap
  43. +YACC=yacc
  44. # All of the source files
  45. SRC=Makefile abbrev.c cmds.c color.c crypt.c eres.sed frame.c format.c gram.y \