⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.bak

📁 通过VC++开发
💻 BAK
字号:
#
# 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 = tcc

# MDL set?
!if !$d(MDL)
MDL=l
!endif

# Where all the include files are:
INC = ..\lib

# And libararies:
GIF_LIB = ..\lib\gif_lib$(MDL).lib
CC_LIBS = f:\\

# Where to copy executables to:
DEST = \gif\exe

# 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
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) $(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
	copy gif2epsn.exe $(DEST)
	del gif2epsn.exe
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
	copy gif2herc.exe $(DEST)
	del gif2herc.exe
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
	copy gifasm.exe $(DEST)
	del gifasm.exe
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
	copy gifbg.exe $(DEST)
	del gifbg.exe
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
	copy gifclip.exe $(DEST)
	del gifclip.exe
gifclip.obj: $(INC)\gif_lib.h $(INC)\getarg.h

$(DEST)\gifclrmp.exe: gifclrmp.c gifclrmp.obj $(GIF_LIB)
	$(CC) -I$(INC) $(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
	copy gifclrmp.exe $(DEST)
	del gifclrmp.exe
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
	copy gifcomb.exe $(DEST)
	del gifcomb.exe
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
	copy gifflip.exe $(DEST)
	del gifflip.exe
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
	copy gifhisto.exe $(DEST)
	del gifhisto.exe
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
	copy gifinter.exe $(DEST)
	del gifinter.exe
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
	copy gifinto.exe $(DEST)
	del gifinto.exe
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
	copy gifpos.exe $(DEST)
	del gifpos.exe
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
	copy gifrsize.exe $(DEST)
	del gifrsize.exe
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
	copy giftext.exe $(DEST)
	del giftext.exe
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
	copy herc2gif.exe $(DEST)
	del herc2gif.exe
herc2gif.obj: $(INC)\gif_lib.h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -