Makefile tweaks
authorDavid Griffith <dave@661.org>
Tue, 14 Aug 2012 03:23:01 +0000 (20:23 -0700)
committerDavid Griffith <dave@661.org>
Tue, 14 Aug 2012 03:23:01 +0000 (20:23 -0700)
Makefile.tc
build.bat

index 8d99ee261388fed1b35f223596c80d263b594b1d..957a581cb138c54336ce54e75337b16143dc6224 100644 (file)
@@ -1,15 +1,17 @@
+# This file is used to build Frotz for DOS using Borland Turbo C++ 3.00.\r
+# The resulting executable runs as a 16-bit program.\r
+# -O or higher optimization causes problems in quetzal.c\r
+#\r
+\r
 CC = tcc\r
 CFLAGS = -ml -N\r
-# -O optimization causes problems in quetzal.c\r
-#CFLAGS = -ml -N -O \r
 TLIB = tlib\r
 CP = copy\r
+RM = del\r
 RENAME = ren\r
 \r
 \r
 BINNAME = frotz.exe\r
-FONTFILE = font.dat\r
-TEMPFILE = tempfile.exe\r
 LIBRARY = frotz.lib\r
 \r
 SOUND_DEF = -DSOUND_SUPPORT\r
@@ -60,16 +62,12 @@ BLORB_OBJECTS = $(BLORB_DIR)\blorblib.o
 all:   frotz\r
 \r
 clean:\r
-#      del $(BLORB_DIR)\*.o\r
-       del $(CORE_DIR)\*.o\r
-       del $(DOS_DIR)\*.o\r
-       del *.lib\r
-       del *.exe\r
-       del *.bak\r
+       $(RM) $(BLORB_DIR)\*.o\r
+       $(RM) $(CORE_DIR)\*.o\r
+       $(RM) $(DOS_DIR)\*.o\r
+       $(RM) *.lib\r
+       $(RM) *.exe\r
+       $(RM) *.bak\r
 \r
 frotz: $(BLORB_OBJECTS) $(DOS_OBJECTS) $(CORE_OBJECTS)\r
        $(CC) $(CFLAGS) -e$(BINNAME) $(LIBRARY)\r
-\r
-#frotz:        $(DOS_OBJECTS) $(CORE_OBJECTS)\r
-#      $(CC) $(CFLAGS) -e$(BINNAME) $(LIBRARY)\r
-\r
index b1eebfd61b7e8d121fc6c09a0942a1771a79b74a..2b3a225509826a9a3117a47890fa7922839bcfc7 100644 (file)
--- a/build.bat
+++ b/build.bat
@@ -1,3 +1,6 @@
 @ECHO OFF
-REM This batch file is for compiling Frotz using Turbo C.
+REM This batch file is for compiling Frotz using Turbo C++ 3.00 for DOS.
+REM It's just a bit of syntactic sugar so I don't have to always 
+REM remember that I need to specify the other Makefile for DOS 
+REM compilation.  DG
 make -f makefile.tc %1