File: Makefile.unx

package info (click to toggle)
giflib 5.1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,952 kB
  • sloc: sh: 11,565; ansic: 6,901; xml: 2,401; makefile: 278
file content (43 lines) | stat: -rw-r--r-- 1,061 bytes parent folder | download | duplicates (2)
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)