about summary refs log tree commit diff
path: root/Src/zsh.mdd
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-03-13 11:10:59 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-03-13 11:10:59 +0000
commit2ca42b2025cceaabd64889aa3b932195e8d5720c (patch)
tree3411d35057120791220f7fff1b2944cc912a4389 /Src/zsh.mdd
parent37a7e813905ceba883493a70f81ab8695627662f (diff)
downloadzsh-2ca42b2025cceaabd64889aa3b932195e8d5720c.tar.gz
zsh-2ca42b2025cceaabd64889aa3b932195e8d5720c.tar.xz
zsh-2ca42b2025cceaabd64889aa3b932195e8d5720c.zip
24705: rationalise curses and term headers even more
Diffstat (limited to 'Src/zsh.mdd')
-rw-r--r--Src/zsh.mdd19
1 files changed, 18 insertions, 1 deletions
diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index 8aef628c5..ab36ec8d7 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -33,9 +33,26 @@ init.o: bltinmods.list zshpaths.h zshxmods.h
 
 init.o params.o parse.o: version.h
 
-version.h: $(sdir_top)/Config/version.mk
+# The main shell doesn't currently need zshcurses.h and zshterm.h,
+# but make sure these are built with the headers.
+# If it did need need them they would be in headers at the top instead.
+version.h: $(sdir_top)/Config/version.mk zshcurses.h zshterm.h
 	echo '#define ZSH_VERSION "'$(VERSION)'"' > $@
 
+zshcurses.h: ../config.h
+	@if test x$(ZSH_CURSES_H) != x; then \
+	  echo "#include <$(ZSH_CURSES_H)>" >zshcurses.h; \
+	else \
+	  echo >zshcurses.h; \
+	fi
+
+zshterm.h: ../config.h
+	@if test x$(ZSH_TERM_H) != x; then \
+	  echo "#include <$(ZSH_TERM_H)>" >zshterm.h; \
+	else \
+	  echo >zshterm.h; \
+	fi
+
 zshpaths.h: Makemod $(CONFIG_INCS)
 	@echo '#define MODULE_DIR "'$(MODDIR)'"' > zshpaths.h.tmp
 	@if test x$(sitescriptdir) != xno; then \