summaryrefslogtreecommitdiff
path: root/Makefile.tc
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.tc')
-rw-r--r--Makefile.tc17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile.tc b/Makefile.tc
index e173a55..ceed87d 100644
--- a/Makefile.tc
+++ b/Makefile.tc
@@ -4,18 +4,20 @@
4# To use, do "make -fmakefile.tc" 4# To use, do "make -fmakefile.tc"
5 5
6# WARNING: the small model is supported but only for small values of 6# WARNING: the small model is supported but only for small values of
7# MAX_WBITS and MAX_MEM_LEVEL. If you wish to reduce the memory 7# MAX_WBITS and MAX_MEM_LEVEL. For example:
8# requirements (default 256K for big objects plus a few K), you can add 8# -DMAX_WBITS=11 -DDEF_WBITS=11 -DMAX_MEM_LEVEL=3
9# to CFLAGS below: -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14 9# If you wish to reduce the memory requirements (default 256K for big
10# objects plus a few K), you can add to CFLAGS below:
11# -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
10# See zconf.h for details about the memory requirements. 12# See zconf.h for details about the memory requirements.
11 13
12# ------------- Turbo C 2.0 ------------- 14# ------------- Turbo C 2.0 -------------
13MODEL=-ml 15MODEL=-ml
14CFLAGS=-O2 -Z $(MODEL) 16CFLAGS=-O2 -G -Z $(MODEL)
15CC=tcc 17CC=tcc -I\tc\include
16LD=tcc 18LD=tcc -L\tc\lib
17LIB=tlib 19LIB=tlib
18LDFLAGS=$(MODEL) 20LDFLAGS=$(MODEL) -f-
19O=.obj 21O=.obj
20 22
21# variables 23# variables
@@ -82,6 +84,7 @@ minigzip.obj: minigzip.c zlib.h zconf.h
82 84
83# we must cut the command line to fit in the MS/DOS 128 byte limit: 85# we must cut the command line to fit in the MS/DOS 128 byte limit:
84zlib.lib: $(OBJ1) $(OBJ2) 86zlib.lib: $(OBJ1) $(OBJ2)
87 del zlib.lib
85 $(LIB) zlib +$(OBJP1) 88 $(LIB) zlib +$(OBJP1)
86 $(LIB) zlib +$(OBJP2) 89 $(LIB) zlib +$(OBJP2)
87 90