]> granicus.if.org Git - nethack/commitdiff
djgpp zlib support
authornethack.allison <nethack.allison>
Sun, 23 Jan 2005 16:29:16 +0000 (16:29 +0000)
committernethack.allison <nethack.allison>
Sun, 23 Jan 2005 16:29:16 +0000 (16:29 +0000)
Tested the djgpp MSDOS build with zlib support.

include/config.h
sys/msdos/Makefile.GCC

index 6f65d278b41b5d8d985aec3927948afec22f21ef..b60db088c996322292dc29286c25fff64f827527 100644 (file)
  *     files at the cost of additional code and time.
  */
 
-/* # define INTERNAL_COMP      */      /* Forces both ZEROCOMP and RLECOMP */
+/* # define INTERNAL_COMP      */      /* defines both ZEROCOMP and RLECOMP */
 /* # define ZEROCOMP           */      /* Support ZEROCOMP compression */
 /* # define RLECOMP            */      /* Support RLECOMP compression  */
 
index 801354d5b8edffe0d89d3cac8501aab9364d4b5e..89ef1cd6d5ee335b3b8edcb76146c5e827348aef 100644 (file)
@@ -1,5 +1,5 @@
 #      SCCS Id: @(#)Makefile.GCC             3.5     $Date$
-#      Copyright (c) NetHack PC Development Team 1996-2003.
+#      Copyright (c) NetHack PC Development Team 1996-2005.
 #      PC NetHack 3.5 Makefile for djgpp V2
 #
 #      Gnu gcc compiler for msdos (djgpp)
@@ -77,13 +77,20 @@ endif
 #
 YACC   = bison -y
 LEX    = flex
-YTABC  = y_tab.c
-YTABH  = y_tab.h
-#If your tool produces y.tab.c and y.tab.h DOS might require
-#the following instead.
-#YTABC  = ytab~1.c
-#YTABH  = ytab~1.h
-LEXYYC = lexyy.c
+#
+# If your flex and bison port mess with the output names directly
+# you must set the file names to the appropriate output file names
+# here
+#YTABC  = y_tab.c
+#YTABH  = y_tab.h
+#LEXYYC = lexyy.c
+#
+# If your flex and bison are able to produce files named
+# y.tab.c, y.tab.h or lex.yy.c you might have to set these
+# to the short file name equivalent (DIR /X to reveal them):
+YTABC  = ytab~1.c
+YTABH  = ytab~1.h
+LEXYYC = lexyy~1.c
 
 #
 # Uncomment the line below if you want to store all the level files,
@@ -105,6 +112,20 @@ LS = ls -1         # ls.exe from djgpp distribution
 # SUPPRESS_GRAPHICS = Y
 SUPPRESS_GRAPHICS = 
 
+# ZLIB Support
+# To support zlib compression in bones and save files, you must
+# define ZLIB_COMP in include/config.h.
+# You must also have a zlib library to link NetHack with, and
+# for the djgpp build, you need one compatible with djgpp.
+# At the time that this was written (post-NetHack 3.4.3) the 
+# following URL was a valid place to get a pre-built djgpp library
+# to add to your djgpp tools directory tree.
+# http://www.delorie.com/pub/djgpp/current/v2tk/zlib114b.zip
+#
+# If you defined ZLIB_COMP in include/config.h to build in support
+# for ZLIB compression, you need to uncomment the line below.
+#ZLIB= -lz
+
 #===============================================
 #======= End of Modification Section ===========
 #===============================================
@@ -447,7 +468,7 @@ endif
 #==========================================
 
 $(GAMEFILE): $(O)obj.tag $(PATCHLEV_H) $(O)utility.tag $(ALLOBJ) $(O)$(GAME).lnk
-       $(LINK) $(LFLAGS) -o$(GAME).exe @$(O)$(GAME).lnk $(LIBRARIES)
+       $(LINK) $(LFLAGS) -o$(GAME).exe @$(O)$(GAME).lnk $(LIBRARIES) $(ZLIB)
        @$(subst /,\,stubedit $(GAME).exe minstack=2048K)
        @$(subst /,\,copy $(GAME).exe $(GAMEFILE))
        @$(subst /,\,del $(GAME).exe)