From: David Griffith Date: Tue, 14 Aug 2012 03:23:01 +0000 (-0700) Subject: Makefile tweaks X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=5c066fe1a2f33c48ea74595b6fa7a42cd96ee9e4;p=liskon_frotz.git Makefile tweaks --- diff --git a/Makefile.tc b/Makefile.tc index 8d99ee2..957a581 100644 --- a/Makefile.tc +++ b/Makefile.tc @@ -1,15 +1,17 @@ +# This file is used to build Frotz for DOS using Borland Turbo C++ 3.00. +# The resulting executable runs as a 16-bit program. +# -O or higher optimization causes problems in quetzal.c +# + CC = tcc CFLAGS = -ml -N -# -O optimization causes problems in quetzal.c -#CFLAGS = -ml -N -O TLIB = tlib CP = copy +RM = del RENAME = ren BINNAME = frotz.exe -FONTFILE = font.dat -TEMPFILE = tempfile.exe LIBRARY = frotz.lib SOUND_DEF = -DSOUND_SUPPORT @@ -60,16 +62,12 @@ BLORB_OBJECTS = $(BLORB_DIR)\blorblib.o all: frotz clean: -# del $(BLORB_DIR)\*.o - del $(CORE_DIR)\*.o - del $(DOS_DIR)\*.o - del *.lib - del *.exe - del *.bak + $(RM) $(BLORB_DIR)\*.o + $(RM) $(CORE_DIR)\*.o + $(RM) $(DOS_DIR)\*.o + $(RM) *.lib + $(RM) *.exe + $(RM) *.bak frotz: $(BLORB_OBJECTS) $(DOS_OBJECTS) $(CORE_OBJECTS) $(CC) $(CFLAGS) -e$(BINNAME) $(LIBRARY) - -#frotz: $(DOS_OBJECTS) $(CORE_OBJECTS) -# $(CC) $(CFLAGS) -e$(BINNAME) $(LIBRARY) - diff --git a/build.bat b/build.bat index b1eebfd..2b3a225 100644 --- 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