blob: 8e04eab6ca4e68445e63050e6c601c8f0c6c70d2 (
plain)
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
|
$NetBSD: patch-ab,v 1.7 1999/09/30 15:21:55 agc Exp $
--- util/Makefile.orig Thu Jun 26 18:22:30 1997
+++ util/Makefile Thu Sep 30 16:01:59 1999
@@ -22,12 +22,12 @@
# X_INC_DIR = /server/sun4/usr/new/lib/X11R4
# 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 ../lib/getarg.h
+CDEFS= -I../lib
+GIF_LIB = ../lib/libgif.la
+GIF_INC_DEPEND = ../lib/libgif.la ../lib/gif_lib.h ../lib/getarg.h
# Where to copy executables to:
-DEST = /usr/bin
+DEST = ${PREFIX}/bin
# These are the flags for gcc, in BSD4.3 or Sun O.S. 4.0.3
#
@@ -81,14 +81,14 @@
# Linux using XFree86
#
-CC = gcc
+#CC = gcc
#CFLAGS = $(INC) -fno-builtin -O -s -W -Wreturn-type -Wcomment
-CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment
-XLIBS = -lX11
+#CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment
+#XLIBS = -lX11
X_INC_DIR = /usr/X11/include
X_LIB_DIR = /usr/X11/lib
-BINARIES = gif2epsn gif2ps gif2rgb gif2x11 gifasm gifbg \
+BINARIES = gif2epsn gif2ps gif2rgb gifasm gifbg \
gifclip gifclrmp gifcomb giffix gifflip gifhisto \
gifinter gifinto gifovly gifpos gifrotat gifrsize giftext \
gifwedge raw2gif rgb2gif text2gif gifspnge giffiltr \
@@ -105,7 +105,8 @@
iris: $(IRIS)
install-all:
- cp $(BINARIES) $(SCRIPTS) $(DEST)
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} $(BINARIES) $(DEST)
+ ${BSD_INSTALL_SCRIPT} $(SCRIPTS) $(DEST)
install-rle:
cp $(RLE) $(DEST)
@@ -113,8 +114,8 @@
install-iris:
cp $(IRIS) $(DEST)
-.c:
- $(CC) $(CFLAGS) $< $(GIF_LIB) -lm $(LDFLAGS) -o $*
+.c:
+ ${LIBTOOL} --mode=link $(CC) $(CDEFS) ${CFLAGS} $< $(GIF_LIB) -lm $(LDFLAGS) -L$(X_LIB_DIR) $(XLIBS) -o $*
uninstall-utils:
(cd $(DEST); rm -f $(BINARIES) $(RLE) $(IRIS) $(SCRIPTS))
|