📄 makefile.1
字号:
#
# This is the make file for the util subdirectory of the GIF library
# In order to run it tcc is assumed to be available, in addition to
# tlib and borland make.
#
# Usage: "make [-DMDL=model]" where model can be l (large) or c (compact) etc.
# Note the MDL is optional with large model as default.
#
#
# This make file requires:
# 1. Setting the TC libraries directory as CC_LIBS below. Make sure this
# is really short (because of DOS stupid limit on command line length).
# 2. Setting the executables destination directory as DEST below. Make
# sure that directory do exists.
# 2. Making new library named graphbgi.lib holds the drivers for the different
# devices (using bgiobj.exe and tlib.exe utilities).
#
# Gershon Elber, Jun 1989
#
# Your C compiler
CC = d:\tc\tcc
# MDL set?
!if !$d(MDL)
MDL=l
!endif
# Where all the include files are:
INC = .
# And libararies:
GIF_LIB = gif_lib$(MDL).lib
CC_LIBS = d:\tc\lib\\
# Where to copy executables to:
DEST = .
# Note the tcc xxxxxx.tc files enables ALL warnings for more strict tests so
# you should use them during debuging. I didnt add it here as command lines
# are limited to 128 chars...
FLAGS = -m$(MDL) -a- -f- -G -O -r -c -d -w -I.
FLAGSMAT = -m$(MDL) -a- -f -G -O -r -c -d -w
ALL = $(DEST)\gif2epsn.exe $(DEST)\gif2herc.exe $(DEST)\gifasm.exe \
$(DEST)\gifbg.exe $(DEST)\gifclip.exe $(DEST)\gifclrmp.exe \
$(DEST)\gifcomb.exe $(DEST)\gifflip.exe $(DEST)\gifhisto.exe \
$(DEST)\gifinter.exe $(DEST)\gifinto.exe $(DEST)\gifpos.exe \
$(DEST)\gifrsize.exe $(DEST)\giftext.exe $(DEST)\herc2gif.exe
.c.obj:
$(CC) -I$(INC) -Id:\tc\include $(FLAGS) $<
all.exe: $(ALL)
$(DEST)\gif2epsn.exe: gif2epsn.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gif2epsn.obj, gif2epsn,, $(GIF_LIB) \
$(CC_LIBS)graphics.lib $(CC_LIBS)graphbgi.lib $(CC_LIBS)c$(MDL).lib /x
gif2epsn.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gif2herc.exe: gif2herc.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gif2herc.obj, gif2herc,, $(GIF_LIB) \
$(CC_LIBS)graphics.lib $(CC_LIBS)graphbgi.lib $(CC_LIBS)c$(MDL).lib /x
gif2herc.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifasm.exe: gifasm.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifasm.obj, gifasm,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifasm.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifbg.exe: gifbg.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifbg.obj, gifbg,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifbg.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifclip.exe: gifclip.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifclip.obj, gifclip,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifclip.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifclrmp.exe: gifclrmp.c gifclrmp.obj $(GIF_LIB)
$(CC) -I$(INC) -Id:\tc\include $(FLAGSMAT) gifclrmp.c
tlink $(CC_LIBS)c0$(MDL).obj gifclrmp.obj, gifclrmp,, $(GIF_LIB) \
$(CC_LIBS)emu $(CC_LIBS)math$(MDL) $(CC_LIBS)c$(MDL) /x
gifclrmp.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifcomb.exe: gifcomb.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifcomb.obj, gifcomb,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifcomb.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifflip.exe: gifflip.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifflip.obj, gifflip,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifflip.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifhisto.exe: gifhisto.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifhisto.obj, gifhisto,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifhisto.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifinter.exe: gifinter.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifinter.obj, gifinter,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifinter.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifinto.exe: gifinto.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifinto.obj, gifinto,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifinto.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifpos.exe: gifpos.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifpos.obj, gifpos,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifpos.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\gifrsize.exe: gifrsize.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj gifrsize.obj, gifrsize,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
gifrsize.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\giftext.exe: giftext.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj giftext.obj, giftext,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
giftext.obj: $(INC)\gif_lib.h $(INC)\getarg.h
$(DEST)\herc2gif.exe: herc2gif.obj $(GIF_LIB)
tlink $(CC_LIBS)c0$(MDL).obj herc2gif.obj, herc2gif,, $(GIF_LIB) \
$(CC_LIBS)c$(MDL).lib /x
herc2gif.obj: $(INC)\gif_lib.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -