1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-17 00:00:40 +00:00
freebsd-ports/graphics/jbigkit/files/patch-ab
Vanilla I. Shu 7da2230176 Upgrade to 1.0.
PR:		ports/7015
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
1998-06-25 07:07:22 +00:00

33 lines
802 B
Plaintext

--- libjbig/Makefile.orig Thu Jun 25 13:26:01 1998
+++ libjbig/Makefile Thu Jun 25 13:29:44 1998
@@ -5,9 +5,9 @@
CC = gcc
# Options for the compiler: A high optimization level is suggested
-CFLAGS = -O -Wall -ansi -pedantic
+CFLAGS += -Wall -ansi -pedantic
-all: libjbig.a tstcodec
+all: libjbig.a libjbig.so.1.0
tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
$(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
@@ -18,7 +18,17 @@
ar rc libjbig.a jbig.o jbig_tab.o
ranlib libjbig.a
+libjbig.so.1.0: jbig.so jbig_tab.so
+ rm -f libjbig.so.1.0
+ ld -Bshareable -o ${.TARGET} ${.ALLSRC}
+
jbig.o: jbig.c jbig.h
+
+.SUFFIXES: .c .so
+.c.so:
+ ${CC} -c -fpic -DPIC ${CFLAGS} ${.IMPSRC} -o ${.TARGET}
+jbig.so: jbig.c jbig.h
+jbig_tab.so: jbig_tab.c
test: tstcodec
./tstcodec