blob: 361d6796f2f712f94944db71b9f6e50ccbdf6fb5 (
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
62
63
64
65
|
--- util/Makefile.orig Thu Jun 26 13:22:30 1997
+++ util/Makefile Tue Jul 14 15:46:43 1998
@@ -22,12 +22,13 @@
# 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
+CFLAGS+= -I../lib
+GIF_LIB = ../lib/libgif.la
+GIF_INC_DEPEND = ../lib/libgif.la ../lib/gif_lib.h ../lib/getarg.h
+LDFLAGS = -s
# 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,12 +82,12 @@
# 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
+#CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment
XLIBS = -lX11
-X_INC_DIR = /usr/X11/include
-X_LIB_DIR = /usr/X11/lib
+X_INC_DIR = ${X11BASE}/include
+X_LIB_DIR = ${X11BASE}/lib
BINARIES = gif2epsn gif2ps gif2rgb gif2x11 gifasm gifbg \
gifclip gifclrmp gifcomb giffix gifflip gifhisto \
@@ -105,7 +106,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)
@@ -114,7 +116,7 @@
cp $(IRIS) $(DEST)
.c:
- $(CC) $(CFLAGS) $< $(GIF_LIB) -lm $(LDFLAGS) -o $*
+ ${LIBTOOL} --mode=link $(CC) $(CFLAGS) $< $(GIF_LIB) -lm $(LDFLAGS) -o $*
uninstall-utils:
(cd $(DEST); rm -f $(BINARIES) $(RLE) $(IRIS) $(SCRIPTS))
@@ -123,7 +125,7 @@
$(CC) gif2iris.c $(CFLAGS) $(LDFLAGS) -lgl_s -o gif2iris
gif2x11: gif2x11.c
- $(CC) gif2x11.c $(CFLAGS) -I$(X_INC_DIR) -L$(X_LIB_DIR) $(LDFLAGS) $(GIF_LIB) $(XLIBS) -o gif2x11
+ ${LIBTOOL} --mode=link $(CC) gif2x11.c $(CFLAGS) -I$(X_INC_DIR) -L$(X_LIB_DIR) $(LDFLAGS) $(GIF_LIB) $(XLIBS) -o gif2x11
clean:
|