1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
|
#
# 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
#
# Works only on TC++ 1.0 make and up - swap out make before invoking command.
.SWAP
# Your C compiler
CC = tcc
# MDL set?
!if !$d(MDL)
MDL=l
!endif
# Where all the include files are:
INC = ..\lib
GIF_INC = $(INC)\gif_lib.h $(INC)\getarg.h
# And libararies:
GIF_LIB = ..\lib\gif_lib$(MDL).lib
CC_LIBS = c:\tc\lib\\
BGI_LIB = c:\tc\mylib\graphbgi.lib
LIBS = $(GIF_LIB) $(CC_LIBS)graphics.lib $(BGI_LIB) \
$(CC_LIBS)emu.lib $(CC_LIBS)math$(MDL).lib
# Where to copy executables to:
DEST = c:\gif
# 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...
#
# Optimized version:
CFLAGS = -m$(MDL) -a- -f -G -O -r -c -d -w -v- -y- -k- -M-
#
# Debugging version:
# CFLAGS = -m$(MDL) -a- -f -c -d -w -v -y -k -M-
# LFLAGS = -lvlc
ALL = $(DEST)\gif2bgi.exe $(DEST)\gif2epsn.exe $(DEST)\gif2herc.exe \
$(DEST)\gif2ps.exe $(DEST)\gif2rgb.exe $(DEST)\gifasm.exe \
$(DEST)\gifbg.exe $(DEST)\gifclip.exe $(DEST)\gifclrmp.exe \
$(DEST)\gifcomb.exe $(DEST)\giffix.exe $(DEST)\gifflip.exe \
$(DEST)\gifhisto.exe $(DEST)\gifinter.exe $(DEST)\gifinto.exe \
$(DEST)\gifpos.exe $(DEST)\gifrotat.exe $(DEST)\gifrsize.exe \
$(DEST)\giftext.exe $(DEST)\gifwedge.exe $(DEST)\herc2gif.exe \
$(DEST)\raw2gif.exe $(DEST)\rgb2gif.exe $(DEST)\text2gif.exe \
$(DEST)\gifspnge.exe $(DEST)\giffiltr.exe $(DEST)\icon2gif.exe \
$(DEST)\gifcolor.exe
allexe: $(ALL)
#
# Note we go all the way to the exe file using this rule.
#
# LZEXE is an EXE compressor program. If you dont have it remove the two
# lines of 'lzexe $&.exe' and 'del $&.old'.
#
.c.obj:
$(CC) -I$(INC) $(CFLAGS) {$&.c }
$(CC) -m$(MDL) $(LFLAGS) $&.obj $(LIBS)
lzexe $&.exe
del $&.old
copy $&.exe $(DEST)
del $&.exe
$(DEST)\gif2bgi.exe: gif2bgi.obj
gif2bgi.obj: $(GIF_INC)
$(DEST)\gif2epsn.exe: gif2epsn.obj
gif2epsn.obj: $(GIF_INC)
$(DEST)\gif2herc.exe: gif2herc.obj $(GIF_LIB)
gif2herc.obj: $(GIF_INC)
$(DEST)\gif2ps.exe: gif2ps.obj $(GIF_LIB)
gif2ps.obj: $(GIF_INC)
$(DEST)\gif2rgb.exe: gif2rgb.obj $(GIF_LIB)
gif2rgb.obj: $(GIF_INC)
$(DEST)\gifasm.exe: gifasm.obj $(GIF_LIB)
gifasm.obj: $(GIF_INC)
$(DEST)\gifbg.exe: gifbg.obj $(GIF_LIB)
gifbg.obj: $(GIF_INC)
$(DEST)\gifclip.exe: gifclip.obj $(GIF_LIB)
gifclip.obj: $(GIF_INC)
$(DEST)\gifclrmp.exe: gifclrmp.c gifclrmp.obj $(GIF_LIB)
gifclrmp.obj: $(GIF_INC)
$(DEST)\gifcomb.exe: gifcomb.obj $(GIF_LIB)
gifcomb.obj: $(GIF_INC)
$(DEST)\giffix.exe: giffix.obj $(GIF_LIB)
giffix.obj: $(GIF_INC)
$(DEST)\gifflip.exe: gifflip.obj $(GIF_LIB)
gifflip.obj: $(GIF_INC)
$(DEST)\gifhisto.exe: gifhisto.obj $(GIF_LIB)
gifhisto.obj: $(GIF_INC)
$(DEST)\gifinter.exe: gifinter.obj $(GIF_LIB)
gifinter.obj: $(GIF_INC)
$(DEST)\gifinto.exe: gifinto.obj $(GIF_LIB)
gifinto.obj: $(GIF_INC)
$(DEST)\gifpos.exe: gifpos.obj $(GIF_LIB)
gifpos.obj: $(GIF_INC)
$(DEST)\gifrotat.exe: gifrotat.obj $(GIF_LIB)
gifrotat.obj: $(GIF_INC)
$(DEST)\gifrsize.exe: gifrsize.obj $(GIF_LIB)
gifrsize.obj: $(GIF_INC)
$(DEST)\giftext.exe: giftext.obj $(GIF_LIB)
giftext.obj: $(GIF_INC)
$(DEST)\gifwedge.exe: gifwedge.obj $(GIF_LIB)
gifwedge.obj: $(GIF_INC)
$(DEST)\herc2gif.exe: herc2gif.obj $(GIF_LIB)
herc2gif.obj: $(GIF_INC)
$(DEST)\raw2gif.exe: raw2gif.obj $(GIF_LIB)
raw2gif.obj: $(GIF_INC)
$(DEST)\rgb2gif.exe: rgb2gif.obj $(GIF_LIB)
rgb2gif.obj: $(GIF_INC)
$(DEST)\text2gif.exe: text2gif.obj $(GIF_LIB)
text2gif.obj: $(GIF_INC)
$(DEST)\gifspnge.exe: gifspnge.obj $(GIF_LIB)
gifspnge.obj: $(GIF_INC)
$(DEST)\giffiltr.exe: giffiltr.obj $(GIF_LIB)
giffiltr.obj: $(GIF_INC)
$(DEST)\icon2gif.exe: icon2gif.obj $(GIF_LIB)
icon2gif.obj: $(GIF_INC)
$(DEST)\gifcolor.exe: gifcolor.obj $(GIF_LIB)
gifcolor.obj: $(GIF_INC)
|