patch-create_make 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $OpenBSD: patch-create_make,v 1.3 2013/12/06 15:46:31 bcallah Exp $
  2. --- create.make.orig Mon Sep 23 00:18:30 2002
  3. +++ create.make Fri Dec 6 10:02:58 2013
  4. @@ -11,6 +11,11 @@
  5. name_string="`uname`"
  6. +# where to read system-wide configuration from
  7. +
  8. +: ${SYSCONFDIR=/usr/local/lib}
  9. +SYSCONF="-DSYSCONFDIR=\"\\\"${SYSCONFDIR}\\\"\""
  10. +
  11. # test for existence of termcap (exists on both BSD and SysV systems)
  12. if [ -f /etc/termcap -o -f /usr/share/lib/termcap -o -f /usr/share/misc/termcap ]
  13. @@ -257,7 +262,7 @@ then
  14. mv make.local make.lcl.old
  15. fi
  16. -echo "DEFINES = $termio $terminfo_exists $BSD_SELECT $catgets $select $curses " > make.local
  17. +echo "DEFINES = $SYSCONF $termio $terminfo_exists $BSD_SELECT $catgets $select $curses " > make.local
  18. echo "" >> make.local
  19. echo "CFLAGS = $HAS_UNISTD $HAS_STDARG $HAS_STDLIB $HAS_CTYPE $HAS_SYS_IOCTL $HAS_SYS_WAIT $five_lib $five_include $select_hdr $other_cflags $termcap_exists" >> make.local
  20. echo "" >> make.local
  21. @@ -267,16 +272,16 @@ echo "all : $TARGET" >> make.local
  22. cat >> make.local << EOF
  23. curses : ee.c
  24. - cc ee.c -o ee \$(CFLAGS) -lcurses
  25. + \$(CC) ee.c -o ee \$(DEFINES) \$(CFLAGS) -lcurses
  26. ee : ee.o new_curse.o
  27. - cc -o ee ee.o new_curse.o \$(CFLAGS)
  28. + \$(CC) -o ee ee.o new_curse.o \$(CFLAGS)
  29. ee.o : ee.c new_curse.h
  30. - cc -c ee.c \$(DEFINES) \$(CFLAGS)
  31. + \$(CC) -c ee.c \$(DEFINES) \$(CFLAGS)
  32. new_curse.o : new_curse.c new_curse.h
  33. - cc new_curse.c -c \$(DEFINES) \$(CFLAGS)
  34. + \$(CC) new_curse.c -c \$(DEFINES) \$(CFLAGS)
  35. EOF