diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-20 22:29:34 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-20 22:29:34 +0000 |
commit | 8f474f6a0858eddfa1a6552858f6d79fbf7473cb (patch) | |
tree | 645f0a97ea5270c89c14b62234d2eff9de10cb05 /crawl-ref/source/makefile.unix | |
parent | e8e11dc64f771035d877ffb3fc1aaa1d092ee5b6 (diff) | |
download | crawl-ref-8f474f6a0858eddfa1a6552858f6d79fbf7473cb.tar.gz crawl-ref-8f474f6a0858eddfa1a6552858f6d79fbf7473cb.zip |
Refix build for Mac OS.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1339 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makefile.unix')
-rw-r--r-- | crawl-ref/source/makefile.unix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/makefile.unix b/crawl-ref/source/makefile.unix index 013022bb81..1fbf207124 100644 --- a/crawl-ref/source/makefile.unix +++ b/crawl-ref/source/makefile.unix @@ -68,6 +68,12 @@ ifneq ($(DATADIR),) CFOTHERS += '-DDATA_DIR_PATH="$(DATADIR)"' endif +HAVE_NDBM := $(shell [ -f /usr/include/ndbm.h ] && echo y) + +ifeq ($(HAVE_NDBM),y) +CFOTHERS += -DDB_NDBM +endif + CFLAGS := $(INCLUDES) $(CFWARN) $(CFOTHERS) YCFLAGS := $(INCLUDES) $(CFOTHERS) @@ -251,4 +257,4 @@ pkgzip: cd ../.. && zip -rq $(SRC_PKG_ZIP) $(PKG_SRC_DIR) \ -x@$(PKG_EXCLUDES) -endif
\ No newline at end of file +endif |