From d66659c6067ec18022718457bcf7c73145cf7b38 Mon Sep 17 00:00:00 2001
From: Dave Murphy
Date: Fri, 26 Dec 2014 15:40:46 +0000
Subject: allow building in subdirectory or outside source directory

---
 src/hexen/Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/hexen')

diff --git a/src/hexen/Makefile.am b/src/hexen/Makefile.am
index e8ca8b98..b3953ce6 100644
--- a/src/hexen/Makefile.am
+++ b/src/hexen/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS=-I.. @SDL_CFLAGS@ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
+AM_CFLAGS=-I$(top_srcdir)/src @SDL_CFLAGS@ @SDLMIXER_CFLAGS@ @SDLNET_CFLAGS@
 
 noinst_LIBRARIES=libhexen.a
 
@@ -58,10 +58,10 @@ sounds.c            sounds.h          \
 st_start.c          st_start.h        \
 sv_save.c                             \
                     textdefs.h        \
-                    xddefs.h          
+                    xddefs.h
 
 EXTRA_DIST=                           \
 i_ibm.c                               \
-i_sound.c           
+i_sound.c
 
 libhexen_a_SOURCES=$(SOURCE_FILES)
-- 
cgit v1.2.3