diff options
Diffstat (limited to 'Makefile.tc')
-rw-r--r-- | Makefile.tc | 17 |
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 ------------- |
13 | MODEL=-ml | 15 | MODEL=-ml |
14 | CFLAGS=-O2 -Z $(MODEL) | 16 | CFLAGS=-O2 -G -Z $(MODEL) |
15 | CC=tcc | 17 | CC=tcc -I\tc\include |
16 | LD=tcc | 18 | LD=tcc -L\tc\lib |
17 | LIB=tlib | 19 | LIB=tlib |
18 | LDFLAGS=$(MODEL) | 20 | LDFLAGS=$(MODEL) -f- |
19 | O=.obj | 21 | O=.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: |
84 | zlib.lib: $(OBJ1) $(OBJ2) | 86 | zlib.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 | ||