patch-sys_unix_Makefile_src 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. $OpenBSD: patch-sys_unix_Makefile_src,v 1.10 2017/03/04 12:42:04 espie Exp $
  2. --- sys/unix/Makefile.src.orig Mon Dec 8 00:39:13 2003
  3. +++ sys/unix/Makefile.src Sat Mar 4 13:30:02 2017
  4. @@ -1,6 +1,7 @@
  5. # NetHack Makefile.
  6. # SCCS Id: @(#)Makefile.src 3.4 2002/03/02
  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. @@ -151,14 +152,13 @@ GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs
  12. # flags for debugging:
  13. # CFLAGS = -g -I../include
  14. -CFLAGS = -O -I../include
  15. -LFLAGS =
  16. +CFLAGS += -DHACKDIR=\"${NHDIR}\" -DHAVE_SYS_PARAM_H -I../include
  17. # The Qt and Be window systems are written in C++, while the rest of
  18. # NetHack is standard C. If using Qt, uncomment the LINK line here to get
  19. # the C++ libraries linked in.
  20. CXXFLAGS = $(CFLAGS) -I. -I$(QTDIR)/include
  21. -CXX=g++
  22. +CXX=c++
  23. #LINK=g++
  24. # For cross-compiling, eg. with gcc on Linux (see also CC further up):
  25. #CXX=arm-linux-g++
  26. @@ -214,8 +214,6 @@ WINBEOBJ =
  27. #
  28. #
  29. -WINSRC = $(WINTTYSRC)
  30. -WINOBJ = $(WINTTYOBJ)
  31. # on some systems the termcap library is in -ltermcap or -lcurses
  32. # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead
  33. @@ -235,7 +233,7 @@ WINTTYLIB = -ltermlib
  34. #
  35. # libraries for X11
  36. # If USE_XPM is defined in config.h, you will also need -lXpm here.
  37. -WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
  38. +WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -lXpm
  39. # WINX11LIB = -lXaw -lXmu -lXt -lX11
  40. # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
  41. # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0
  42. @@ -255,8 +253,6 @@ WINGEMLIB = -le_gem -lgem
  43. # libraries for BeOS
  44. WINBELIB = -lbe
  45. -WINLIB = $(WINTTYLIB)
  46. -
  47. # any other strange libraries your system needs (for Sysunix only -- the more
  48. # specialized targets should already be right)
  49. #
  50. @@ -392,7 +388,7 @@ $(GAME): $(SYSTEM)
  51. Sysunix: $(HOBJ) Makefile
  52. @echo "Loading ..."
  53. - $(LINK) $(LFLAGS) -o $(GAME) $(HOBJ) $(WINLIB) $(LIBS)
  54. + @$(LINKCMD) $(LFLAGS) -o $(GAME) $(HOBJ) $(WINLIB) $(LIBS)
  55. @touch Sysunix
  56. Sys3B2: $(HOBJ) Makefile
  57. @@ -459,15 +455,16 @@ objects.o:
  58. $(CC) $(CFLAGS) -c objects.c
  59. @rm -f $(MAKEDEFS)
  60. +MOC=moc
  61. # Qt windowport meta-object-compiler output
  62. qt_kde0.moc: ../include/qt_kde0.h
  63. - $(QTDIR)/bin/moc -o qt_kde0.moc ../include/qt_kde0.h
  64. + ${MOC} -o qt_kde0.moc ../include/qt_kde0.h
  65. qt_win.moc: ../include/qt_win.h
  66. - $(QTDIR)/bin/moc -o qt_win.moc ../include/qt_win.h
  67. + ${MOC} -o qt_win.moc ../include/qt_win.h
  68. qttableview.moc: ../include/qttableview.h
  69. - $(QTDIR)/bin/moc -o qttableview.moc ../include/qttableview.h
  70. + ${MOC} -o qttableview.moc ../include/qttableview.h
  71. $(MAKEDEFS): ../util/makedefs.c $(CONFIG_H) ../include/permonst.h \
  72. ../include/objclass.h ../include/monsym.h \