summaryrefslogtreecommitdiffstats
path: root/pttbbs.mk
diff options
context:
space:
mode:
Diffstat (limited to 'pttbbs.mk')
-rw-r--r--pttbbs.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/pttbbs.mk b/pttbbs.mk
index 7f88be49..79c21177 100644
--- a/pttbbs.mk
+++ b/pttbbs.mk
@@ -3,6 +3,8 @@
BBSHOME?= $(HOME)
BBSHOME?= /home/bbs
+SRCROOT?= .
+
OS!= uname
OS_MAJOR_VER!= uname -r|cut -d . -f 1
OS_MINOR_VER!= uname -r|cut -d . -f 2
@@ -10,7 +12,7 @@ OSTYPE?= $(OS)
CC= gcc
CCACHE!= which ccache|sed -e 's/^.*\///'
-PTT_CFLAGS= -Wall -pipe -DBBSHOME='"$(BBSHOME)"' -I../include
+PTT_CFLAGS= -Wall -pipe -DBBSHOME='"$(BBSHOME)"' -I$(SRCROOT)/include
PTT_LDFLAGS= -L/usr/local/lib
PTT_LIBS= -lhz