Permalink
Browse files

Windows install script created (for InnoSetup);

Linux release script and RPM spec created;
Palette and character map embedded in display_sdl.c
  • Loading branch information...
bitman
bitman committed Mar 29, 2002
1 parent 7d00481 commit dc6c9b5fae41fff932b2db3c720280854a1ac17b
Showing with 1,238 additions and 149 deletions.
  1. +1 −0 ChangeLog
  2. +36 −8 KevEdit.make
  3. +2 −1 KevEdit.version
  4. +17 −12 Makefile
  5. +15 −11 Makefile.dos
  6. +16 −11 Makefile.win
  7. +7 −37 README
  8. +340 −0 copying.txt
  9. +492 −14 display_sdl.c
  10. +1 −1 docs/kevedit.hlp
  11. +7 −3 docs/makehelp.sh
  12. +23 −6 files.c
  13. +8 −5 files.h
  14. +12 −4 help.c
  15. +52 −0 inst/kevedit.iss
  16. +38 −0 inst/kevedit.spec.source
  17. +57 −0 inst/mkrpmtar.sh
  18. +5 −0 kevedit.optimize
  19. +6 −11 libzzt2/Makefile
  20. +6 −9 libzzt2/Makefile.dos
  21. +6 −11 libzzt2/Makefile.win
  22. +33 −0 libzzt2/libzzt2.make
  23. +8 −0 libzzt2/libzzt2.optimize
  24. +5 −5 paramed.c
  25. +45 −0 windows.txt
View
@@ -1,6 +1,7 @@
0.5.0
-----
Native Linux and Windows via SDL display
+Linux and Windows automatic installer generation
Param Editor interface improvements
Tile Info with ability to add/remove stats (params) for any type
Monitor type recognized
View
@@ -1,4 +1,8 @@
-# Actual Makefile rules
+# Makefile rules for building KevEdit in any environment
+
+# Version & optimization information
+include kevedit.version
+include kevedit.optimize
# Set up display settings
ifeq ($(SDL),ON)
@@ -17,6 +21,10 @@ ifeq ($(DOS),ON)
DOSOBJ = display_dos.o
endif
+PATHS = -DDATAPATH=\"$(datadir)\"
+
+CFLAGS += $(OPTIMIZE) $(SDL) $(VCSA) $(DOS) $(VERSIONFLAG) $(PATHS)
+
# Objects
CENTRALOBJS = misc.o menu.o editbox.o screen.o
@@ -27,24 +35,44 @@ DISPLAYOBJS = display.o $(SDLOBJ) $(VCSAOBJ) $(DOSOBJ)
OBJECTS = $(CENTRALOBJS) $(LIBRARYOBJS) $(MISCOBJS) $(DRAWOBJS) $(DISPLAYOBJS)
+# Documents
+
+DOCS = README AUTHORS TODO COPYING ChangeLog
+
.SUFFIXES: .o .c .h
+.cpp.o:
+ $(CC) -o $@ $< $(CFLAGS) -c
+
# Targets
-all: kevedit
+all: kevedit kevedit.zml
kevedit: $(OBJECTS) main.o
- make -C libzzt2 -f $(MAKEFILE_NAME)
$(CC) -o $@ $(OBJECTS) main.o $(CFLAGS) $(LDFLAGS)
-.cpp.o:
- $(CC) -o $@ $< $(CFLAGS) -c
+kevedit.zml: docs/*.hlp
+ cd docs; ./makehelp.sh; cd ..
+
+install: all
+ mkdir -p $(bindir)
+ mkdir -p $(datadir)
+ mkdir -p $(docdir)
+ $(INSTALL) $(BINARY) $(bindir)
+ $(INSTALL) kevedit.zml $(datadir)
+ $(INSTALL) $(DOCS) $(docdir)
+
+uninstall:
+ rm -f $(bindir)/$(BINARY)
+ rm -f -R $(datadir)
+ rm -f -R $(docdir)
clean:
- rm -f *.o kevedit libzzt2/*.o libzzt2/libzzt2.a
+ rm -f *.o kevedit kevedit.exe kevedit.zln
+ make -C libzzt2 clean
# Libraries
-libzzt2/libzzt2.a:
- make -C libzzt2 -f $(MAKEFILE_NAME)
+libzzt2/libzzt2.a: libzzt2/*.c libzzt2/*.h
+ make -C libzzt2 -f $(MAKEFILE_NAME) DOS=$(DOS)
# Dependancies
View
@@ -1 +1,2 @@
-KEVEDIT_VERSION = -DVERSION=\"0.5.0\"
+VERSIONFLAG = -DkeveditVERSION=\"0.5.0\"
+VERSION = 0.5.0
View
@@ -1,26 +1,31 @@
-# Makefile for KevEdit
+# Makefile for KevEdit in Linux
MAKEFILE_NAME = Makefile
-# Choose your compiler
+# Compile using GCC
CC = gcc
-# Uncomment next line to optimize kevedit
-# Uncomment second line to not optimize and include debugging information
-OPTIMIZE = -s -O3 -fexpensive-optimizations -fomit-frame-pointer -finline-functions -funroll-loops -march=pentium
-#OPTIMIZE = -g -Wall
-
# Set SDL to ON to enable SDL display
SDL = ON
# Set VCSA to ON to enable VCSA display
VCSA =
# Set DOS to ON to enable DOS display
DOS =
-include KevEdit.version
-CFLAGS = $(OPTIMIZE) $(SDL) $(VCSA) $(DOS) $(KEVEDIT_VERSION)
-LDFLAGS =
+# Installation directories
+prefix = /usr/local
+bindir = $(prefix)/bin
+datadir = $(prefix)/share/kevedit
+docdir = $(prefix)/doc/kevedit-$(VERSION)
+
+# Target binary
+BINARY = kevedit
-# No more modifications below this line
-# -------------------------------------
+# Install program
+INSTALL = /usr/bin/install -c
+
+# Compile and link flags
+CFLAGS = -DCANGLOB
+LDFLAGS =
+# Makefile rules
include KevEdit.make
View
@@ -1,27 +1,31 @@
-# Makefile for KevEdit
+# Makefile for KevEdit in DOS
MAKEFILE_NAME = Makefile.dos
# Choose your compiler
CC = i586-pc-msdosdjgpp-gcc
-# Uncomment next line to optimize kevedit
-# Uncomment second line to not optimize and include debugging information
-OPTIMIZE = -s -O3 -fexpensive-optimizations -fomit-frame-pointer -finline-functions -funroll-loops -march=pentium
-#OPTIMIZE = -g -Wall
-
# Set SDL to ON to enable SDL display
SDL =
# Set VCSA to ON to enable VCSA display
VCSA =
# Set DOS to ON to enable DOS display
DOS = ON
-include KevEdit.version
+# Installation directories
+prefix = release-dos
+bindir = $(prefix)
+datadir = $(prefix)
+docdir = $(prefix)
-CFLAGS = $(OPTIMIZE) $(SDL) $(VCSA) $(DOS) $(KEVEDIT_VERSION)
-LDFLAGS =
+# Target binary
+BINARY = kevedit.exe
-# No more modifications below this line
-# -------------------------------------
+# Install program
+INSTALL = /usr/bin/install -c
+
+# Compile and link flags
+CFLAGS = -DCANGLOB
+LDFLAGS =
+# Makefile rules
include KevEdit.make
View
@@ -1,26 +1,31 @@
-# Makefile for KevEdit
+# Makefile for KevEdit in Windows
MAKEFILE_NAME = Makefile.win
# Choose your compiler
CC = i686-pc-cygwin-gcc -mno-cygwin
-# Uncomment next line to optimize kevedit
-# Uncomment second line to not optimize and include debugging information
-OPTIMIZE = -s -O3 -fexpensive-optimizations -fomit-frame-pointer -finline-functions -funroll-loops -march=pentium
-#OPTIMIZE = -g -Wall
-
# Set SDL to ON to enable SDL display
SDL = ON
# Set VCSA to ON to enable VCSA display
VCSA =
# Set DOS to ON to enable DOS display
DOS =
-include KevEdit.version
-CFLAGS = $(OPTIMIZE) $(SDL) $(VCSA) $(DOS) $(KEVEDIT_VERSION)
-LDFLAGS =
+# Installation directories
+prefix = release-win
+bindir = $(prefix)
+datadir = $(prefix)
+docdir = $(prefix)
+
+# Target binary
+BINARY = kevedit.exe
-# No more modifications below this line
-# -------------------------------------
+# Install program
+INSTALL = /usr/bin/install -c
+
+# Compile and link flags
+CFLAGS =
+LDFLAGS =
+# Makefile rules
include KevEdit.make
View
44 README
@@ -1,5 +1,5 @@
-----------------------------------------
-KevEdit 0.4.0
+KevEdit 0.5.0
Powerful ZZT Editing
-----------------------------------------
Copyright (C) 2000-2002 Kev Vance <kev@kvance.com>
@@ -9,8 +9,7 @@ Getting Started With KevEdit
----------------------------
Copy the binary KEVEDIT.EXE and the help file KEVEDIT.ZML to your ZZT
directory. You can run it with no arguments to get a blank new world, or give
-it a world on the command line to
-load it.
+it a world on the command line to load it.
Example:
C> kevedit town.zzt
@@ -20,45 +19,16 @@ will be created.
To learn more about using KevEdit, activate its on-line help by pressing 'H'.
-NOTE: The "ZZT Documentation" category of online help does not accompany
-KevEdit. If you install any extended help files to either the same directory as
-KevEdit or the "docs" subfolder, then you can browse them as in ZZT. "About
-ZZT" will load the opening about file, "Playing ZZT" will load the help file
-accessed by the 'H' key in ZZT, and "ZZT Editor" will load the editor help
-file. Note that for Chronos' ZZTWeb these files will all be the same.
-
New Features / Bug Fixes
------------------------
-New features in 0.4.0
- * Libzzt2 - greater stability
- * Board Movement and Deletion
- * All uncommon tiles now available
- * Creature Editing
- * Board Transfer
- * Testing ZZT Music
- * Improved gradient draw tool
- * Backbuffer locking
- * Backbuffer quick keys 0-9
- * More useful quick key reference
- * Extended help when running ZZT
-
-Bugs fixed in 0.4.0
- * Terrain under creatures remains
- * Paste w/o copy first does not crash
-
-KevEdit 0.4.0 represents a major milestone in the development of KevEdit. The
-internal structure of the program has been completely redesigned for maximum
-stability and extendability. This release is both a long-over due end in itself
-and also a jumping-off point for further extensions and features. What more
-could possibly be in store? You shall have to wait to find out...
Blatant Plug of ZZTUnder Project
--------------------------------
-To associate KevEdit with ZZT files anywhere on your hard-drive, install "ZZT
-Under Windows" with KevEdit support and then extract the KevEdit distribution
-into the ZZT Under Windows folder. If extended help is installed in ZZTUWin, it
-will also be available in KevEdit. ZZT Under Windows can be aquired in the
-Utilities section of zzt2.com or from http://zztunder.tk/ .
+For better documentation, install KevEdit and ZZT Under Windows into the same
+folder. If extended help is installed with ZZTUWin then it will be made
+available to KevEdit when testing ZZT worlds and in KevEdit's online help. ZZT
+Under Windows can be aquired in the Utilities section of zzt2.com or from
+http://zztunder.tk/ .
Post Script
-----------
Oops, something went wrong.

0 comments on commit dc6c9b5

Please sign in to comment.