[go: up one dir, main page]

Menu

[733960]: / util / Makefile.unx  Maximize  Restore  History

Download this file

44 lines (34 with data), 1.1 kB

 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
# (Note: this is not presently used, there's an autoconf build.)
#
# This is the make file for the util subdirectory of the GIF library
# The compiler must be GNU gcc or ANSI-compliant.
#
# To make test versions in the utils directory:
#
# make -f makefile.unx [all]
#
# To install them in the /usr/bin directory:
#
# make -f makefile.unx [install-all]
#
# Declare the include files and libraries for the GIF utils:
INC = -I../lib
GIF_LIB = ../lib/libgif.a
GIF_INC_DEPEND = ../lib/libgif.a ../lib/gif_lib.h ../util/getarg.h
# Where to copy executables to:
DEST = /usr/bin
CC = gcc
#CFLAGS = $(INC) -fno-builtin -O -s -W -Wreturn-type -Wcomment
CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment
BINARIES = gif2rgb gifbg gifclrmp giffix gifhisto \
gifinter gifinto giftext gifwedge gif2raw gifecho gifsponge giffilter \
gifbuild gifcolor giftool
all: $(BINARIES)
install-all:
cp $(BINARIES) $(SCRIPTS) $(DEST)
.c:
$(CC) $(CFLAGS) $< $(GIF_LIB) -lm $(LDFLAGS) -o $*
uninstall-utils:
(cd $(DEST); rm -f $(BINARIES))
clean:
rm -f $(BINARIES)