+# 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
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
@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