summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-06 21:52:46 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-06 21:56:20 +0100
commit21d502bfa5f83e1308aab7b965aa31820ec15911 (patch)
treedfe8c1f2c35878b076e6d136d69b07b6cb02060c
parentdde0770def9750cdda6cb204bd1354c543a68e0c (diff)
downloadcrawl-ref-21d502bfa5f83e1308aab7b965aa31820ec15911.tar.gz
crawl-ref-21d502bfa5f83e1308aab7b965aa31820ec15911.zip
Make DOS compilable with just make xxx CROSSHOST=i386-pc-msdosdjgpp
-rw-r--r--crawl-ref/source/makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile
index 6056922ce1..eecf780485 100644
--- a/crawl-ref/source/makefile
+++ b/crawl-ref/source/makefile
@@ -83,6 +83,9 @@ ifdef CROSSHOST
ifneq (,$(findstring mingw,$(CROSSHOST)))
uname_S=MINGW32
endif
+ ifneq (,$(findstring djgpp,$(CROSSHOST)))
+ uname_S=DOS
+ endif
endif
ifneq (,$(findstring MINGW,$(uname_S)))
@@ -101,6 +104,13 @@ ifneq (,$(findstring MINGW,$(uname_S)))
BUILD_ZLIB = YesPlease
endif
endif
+ifeq ($(uname_S),DOS)
+ NO_NCURSES = yes
+ NO_UNICODE = yes
+ NEED_LIBDOS = yes
+ BUILD_PCRE = yes
+ NO_RDYNAMIC = yes
+endif
ifeq ($(uname_S),Darwin)
NO_PKGCONFIG = Yes
ifdef TILES