summaryrefslogtreecommitdiff
path: root/games/xdoom/patches/patch-aa
blob: 246b165bdd89acf7e83b287bfd5895614e5d7fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-aa,v 1.6 2001/07/27 11:05:58 abs Exp $

--- linuxdoom-1.10/Makefile.orig	Mon Dec 22 19:55:36 1997
+++ linuxdoom-1.10/Makefile	Thu Feb  3 13:22:41 2000
@@ -6,9 +6,12 @@
 #
 CC=  gcc  # gcc or g++
 
-CFLAGS=-g -Wall -DNORMALUNIX -DLINUX # -DUSEASM 
-LDFLAGS=-L/usr/X11R6/lib
-LIBS=-lXext -lX11 -lnsl -lm
+X11BASE?=/usr/X11R6
+
+CFLAGS=-O2 -Wall -DNORMALUNIX -DSNDSRV -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\" #-DUSEASM
+CFLAGS+= -I$(X11BASE)/include
+LDFLAGS=-Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib
+LIBS=-lXext -lX11 -lm
 
 # subdirectory for objects
 O=linux