$NetBSD: patch-aa,v 1.2 2011/12/14 00:11:33 marino Exp $

--- Makefile.orig	2010-02-18 16:55:28.000000000 +0000
+++ Makefile
@@ -20,13 +20,13 @@ check_gcc = $(shell if echo | $(CC) $(1)
 DEBUG    ?= 0
 BUILDDIR := .
 
-SYSNAME := $(shell uname -s) 
+SYSNAME := $(shell uname -s)
 
 ifneq (,$(findstring MINGW32,$(SYSNAME)))
 HOST_OS = WIN32
 TOPDIR := $(shell pwd -W)
 else
-ifneq (,$(findstring $(SYSNAME),FreeBSD NetBSD OpenBSD))
+ifneq (,$(findstring $(SYSNAME),FreeBSD NetBSD OpenBSD DragonFly))
 HOST_OS = UNIX
 UNIX = bsd
 TOPDIR := $(shell pwd)
@@ -138,7 +138,7 @@ common.o    gl_rlight.o  host_cmd.o   ne
 # ------------------------
 
 quakespasm:	$(OBJS)
-	$(CC) $(CFLAGS) -o quakespasm $(OBJS) $(X11_LFLAGS) $(SDL_LFLAGS) $(LIBS)
+	$(CC) $(CFLAGS) -o quakespasm $(OBJS) $(X11_LFLAGS) $(SDL_LFLAGS) $(LIBS) $(LDFLAGS)
 	$(STRIP_CMD) $@
 
 release:	quakespasm
@@ -151,3 +151,4 @@ install:	quakespasm
 clean:
 	rm -f $(shell find . \( -name '*~' -o -name '#*#' -o -name '*.o' -o -name '*.res' -o -name $(DEFAULT_TARGET) \) -print)
 
+all:		quakespasm
