Added a "simple" snavig target for doing the minimum of processing.
authorDavid Griffith <dave@661.org>
Sat, 29 Jul 2023 04:30:29 +0000 (21:30 -0700)
committerDavid Griffith <dave@661.org>
Sat, 29 Jul 2023 04:30:29 +0000 (21:30 -0700)
Makefile
src/misc/snavig.pl

index 4cf9632021277051bcdffeb4c849749079a800a5..4ef9006bfc2b21f41454375f9e1f2fb2ff7faf4a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -143,6 +143,9 @@ endif
 ifeq ($(MAKECMDGOALS),dosdefs)
     EXPORT_TYPE = dos
 endif
+ifeq ($(MAKECMDGOALS),simple)
+    EXPORT_TYPE = simple
+endif
 
 RANLIB ?= ranlib
 PKG_CONFIG ?= pkg-config
@@ -389,11 +392,15 @@ else
 endif
 
 all: $(FROTZ_BIN) $(DFROTZ_BIN) $(SFROTZ_BIN) $(XFROTZ_BIN)
+
+# Snavig-processed targets
+#
 snavig:
        @echo "Snavig: Change an object's shape..."
        @echo "Possible snavig-processed targets:"
        @echo "  dos    (done)"
        @echo "  tops20 (done)"
+       @echo "  simple (done)"
        @echo "  its    (not even started)"
        @echo "  tops10 (not even started)"
        @echo "  tenex  (not even started)"
@@ -430,6 +437,14 @@ tops20: $(COMMON_DEFINES) $(HASH)
        @echo "Supported compilers are:"
        @echo "  KCC-6.620(c2l3)"
 
+simple:        $(COMMON_DEFINES) $(HASH)
+       @rm -rf $(SNAVIG_DIR)
+       @mkdir $(SNAVIG_DIR)
+       @echo "** Invoking snavig"
+       @$(SNAVIG) -t simple $(COMMON_DIR) $(DUMB_DIR) $(SNAVIG_DIR)
+       @echo "$(SNAVIG_DIR)/ now contains Frotz source code for $(EXPORT_TYPE)."
+       @echo "Compile with \"cc -o dfrotz *.c\""
+
 
 common_lib:    $(COMMON_LIB)
 curses_lib:    $(CURSES_LIB)
index b96b7d6d0943e706628570b327c1f2be05577791..ceb1ca846354cde45c1d9472808962ab73f3ca58 100755 (executable)
@@ -90,6 +90,8 @@ if ($type eq "tops20") {
        $dos_end = 1;
 } elsif ($type eq "dos") {
        $dos_end = 1;
+} elsif ($type eq "simple") {
+
 } else {
        print "  Unknown target type $type.\n";
        usage();
@@ -196,6 +198,7 @@ sub usage {
        print "Types supported:\n";
        print "  tops20\n";
        print "  dos\n";
+       print "  simple\n";
        exit;
 }