ARCH = arch\msdos
FT_MAKEFILE = $(ARCH)\Makefile.TC
CC = tcc
LIB = tlib /c
!if ! $d(DEBUG)
CFLAGS = -ml -A -a -G -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -I$(ARCH);.;extend
!else
CFLAGS = -v -N -ml -A -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -I$(ARCH);.;extend
!endif
TTFILE = .\ttfile.obj
TTMEMORY = .\ttmemory.obj
TTMUTEX = .\ttmutex.obj
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
OBJS_X = extend\ftxgasp.obj extend\ftxkern.obj extend\ftxpost.obj \
extend\ftxcmap.obj extend\ftxwidth.obj extend\ftxerr18.obj \
extend\ftxsbit.obj extend\ftxopen.obj extend\ftxgsub.obj \
extend\ftxgpos.obj extend\ftxgdef.obj
OBJS_M = ttapi.obj ttcache.obj ttcalc.obj ttcmap.obj ttdebug.obj \
ttgload.obj ttinterp.obj ttload.obj ttobjs.obj \
ttraster.obj ttextend.obj $(PORT) $(OBJS_X)
OBJ_S = $(ARCH)\freetype.obj
OBJS_S = $(OBJ_S) $(OBJS_X)
.c.obj:
$(CC) $(CFLAGS) -c -o$* $<
$(LIB) libttf +-$*.obj
!if !$d(DEBUG)
all: $(OBJS_M)
!endif
debug: $(OBJS_M)
clean:
-del *.obj
-del extend\*.obj
-del $(ARCH)\*.obj
-del libttf.bak
distclean: clean
-del libttf.lib
!include "$(ARCH)\depend.dos"