File: makefile.tc

package info (click to toggle)
giflib 3.0-5
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 1,044 kB
  • ctags: 961
  • sloc: ansic: 11,569; sh: 220; makefile: 153; perl: 54
file content (67 lines) | stat: -rw-r--r-- 1,577 bytes parent folder | download | duplicates (8)
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
#
# This is the make file for the lib subdirectory of the GIF library
# In order to run it tcc is assumed to be available, in addition to
# tlib and obviously 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.
#
#				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 = -I.

CFLAGS = -m$(MDL) -a- -f- -G -O -r -c -d -w -v- -y- -k- -N-

DEST = c:\tc\mylib

OBJS = dev2gif.obj egif_lib.obj dgif_lib.obj gifalloc.obj gif_font.obj gif_hash.obj \
	qprintf.obj gif_err.obj getarg.obj quantize.obj
# Show me better way if you know one to prepare this line for TLIB:
POBJS = +dev2gif.obj +egif_lib.obj +dgif_lib.obj +gifalloc.obj +gif_hash.obj \
	+qprintf.obj +gif_err.obj +getarg.obj +quantize.obj

# The {$< } is also new to TC++ 1.0 make - remove the { } pair if your make
# choke on them (the { } signals batch mode that combines few operation at the
# same time - very nice feature!).
.c.obj:
	$(CC) $(INC) $(CFLAGS) {$< }

gif_libl.lib: $(OBJS)
	del gif_lib$(MDL).lib
	tlib gif_lib$(MDL).lib @&&!
$(POBJS), gif_lib$(MDL).lst
!
	copy gif_lib$(MDL).lib $(DEST)

dev2gif.obj: gif_lib.h

egif_lib.obj: gif_lib.h gif_hash.h

dgif_lib.obj: gif_lib.h gif_hash.h

gifalloc.obj: gif_lib.h

gif_font.obj: gif_lib.h

gif_hash.obj: gif_lib.h gif_hash.h

qprintf.obj: gif_lib.h

gif_err.obj: gif_lib.h

getarg.obj: getarg.h