$NetBSD: patch-ah,v 1.6 2004/10/07 12:45:07 markd Exp $ --- sys/unix/Makefile.src.orig 2003-12-08 12:39:13.000000000 +1300 +++ sys/unix/Makefile.src @@ -151,15 +151,15 @@ GNOMEINC=-I/usr/lib/glib/include -I/usr/ # flags for debugging: # CFLAGS = -g -I../include -CFLAGS = -O -I../include -LFLAGS = +CFLAGS += -I../include -I${X11BASE}/include +LFLAGS = ${LDFLAGS} # The Qt and Be window systems are written in C++, while the rest of # NetHack is standard C. If using Qt, uncomment the LINK line here to get # the C++ libraries linked in. CXXFLAGS = $(CFLAGS) -I. -I$(QTDIR)/include -CXX=g++ -#LINK=g++ +#CXX=g++ +LINK=$(CXX) # For cross-compiling, eg. with gcc on Linux (see also CC further up): #CXX=arm-linux-g++ #LINK=arm-linux-gcc @@ -214,8 +214,8 @@ WINBEOBJ = # # -WINSRC = $(WINTTYSRC) -WINOBJ = $(WINTTYOBJ) +WINSRC = $(WINQTSRC) +WINOBJ = $(WINQTOBJ) # on some systems the termcap library is in -ltermcap or -lcurses # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead @@ -241,7 +241,7 @@ WINX11LIB = -lXaw -lXmu -lXext -lXt -lX1 # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0 # # libraries for Qt -WINQTLIB = -L$(QTDIR)/lib -lqt +WINQTLIB = -L$(QTDIR)/lib -lqt-mt -lXpm -lX11 -lICE -lSM -lz -lpng -lXext # # libraries for KDE (with Qt) WINKDELIB = -lkdecore -lkdeui -lXext @@ -255,7 +255,7 @@ WINGEMLIB = -le_gem -lgem # libraries for BeOS WINBELIB = -lbe -WINLIB = $(WINTTYLIB) +WINLIB = $(WINQTLIB) # any other strange libraries your system needs (for Sysunix only -- the more # specialized targets should already be right)