patch-sys_unix_Makefile_src 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. $OpenBSD: patch-sys_unix_Makefile_src,v 1.4 2014/11/18 11:18:54 brad Exp $
  2. --- sys/unix/Makefile.src.orig Sun Jun 24 18:57:24 2001
  3. +++ sys/unix/Makefile.src Tue Nov 18 05:30:52 2014
  4. @@ -1,6 +1,7 @@
  5. # NetHack Makefile.
  6. # SCCS Id: @(#)Makefile.src 3.3 97/04/17
  7. +include ${NETHACKCONFIG}
  8. # newer makes predefine $(MAKE) to 'make' and do smarter processing of
  9. # recursive make calls if $(MAKE) is used
  10. # these makes allow $(MAKE) to be overridden by the environment if someone
  11. @@ -117,7 +118,7 @@ SYSOBJ = ioctl.o unixmain.o unixtty.o unixunix.o
  12. # flags for Linux
  13. # compile normally
  14. -CFLAGS = -O2 -fomit-frame-pointer -I../include -I/usr/X11/include
  15. +CFLAGS = -O2 -fomit-frame-pointer -I../include -I/usr/X11/include -DHACKDIR=\"${NHDIR}\" -DHAVE_SYS_PARAM_H
  16. LFLAGS = -L/usr/X11/lib
  17. # OR compile backwards compatible a.out format
  18. # CFLAGS = -O2 -b i486-linuxaout -fomit-frame-pointer -I../include -I/usr/X11/include
  19. @@ -146,7 +147,7 @@ GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs
  20. # directories. You should have sdl-config in your path; it gives the
  21. # necessary compile and link flags.
  22. #
  23. -JTPINC=$(shell sdl-config --cflags)
  24. +JTPINC=`sdl-config --cflags`
  25. # flags for debugging:
  26. # CFLAGS = -g -I../include
  27. @@ -232,19 +233,19 @@ WINOBJ = $(WINTTYOBJ) $(WINJTPOBJ)
  28. #
  29. # libraries for tty ports
  30. # WINTTYLIB = -ltermcap
  31. -# WINTTYLIB = -lcurses
  32. +WINTTYLIB = -lcurses
  33. # WINTTYLIB = -lcurses16
  34. -WINTTYLIB = -lncurses
  35. +# WINTTYLIB = -lncurses
  36. # WINTTYLIB = -ltermlib
  37. #
  38. # SDL libraries for Falcon's Eye
  39. -WINJTPLIB = $(shell sdl-config --libs)
  40. +WINJTPLIB = `sdl-config --libs` -lm
  41. #
  42. # libraries for X11
  43. # If USE_XPM is defined in config.h, you will also need -lXpm here.
  44. -WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
  45. +WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -lXpm
  46. # WINX11LIB = -lXaw -lXmu -lXt -lX11
  47. # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
  48. # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0
  49. @@ -294,7 +295,7 @@ WINLIB = $(WINTTYLIB) $(WINJTPLIB)
  50. LIBS =
  51. # make NetHack
  52. -GAME = nethack
  53. +GAME = falconseye
  54. # GAME = nethack.prg
  55. # if you defined RANDOM in unixconf.h/tosconf.h since your system did not come
  56. @@ -467,10 +468,10 @@ objects.o:
  57. # Qt windowport meta-object-compiler output
  58. qt_kde0.moc: ../include/qt_kde0.h
  59. - $(QTDIR)/bin/moc ../include/qt_kde0.h > qt_kde0.moc
  60. + moc2 ../include/qt_kde0.h > qt_kde0.moc
  61. qt_win.moc: ../include/qt_win.h
  62. - $(QTDIR)/bin/moc ../include/qt_win.h > qt_win.moc
  63. + moc2 ../include/qt_win.h > qt_win.moc
  64. $(MAKEDEFS): ../util/makedefs.c $(CONFIG_H) ../include/permonst.h \
  65. ../include/objclass.h ../include/monsym.h \