mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
d819cdda38
(GCTP). PR: 26927 Submitted by: Randall Hopper <aa8vb@nc.rr.com>
36 lines
699 B
Plaintext
36 lines
699 B
Plaintext
|
|
$FreeBSD$
|
|
|
|
--- Makefile.orig Fri Feb 24 17:05:37 1995
|
|
+++ Makefile Thu May 31 15:33:40 2001
|
|
@@ -1,10 +1,12 @@
|
|
|
|
INCDIR =
|
|
-ARCHIVE = geolib.a
|
|
+SHLIB = libgctpc.so.1
|
|
+ARCHIVE = libgctpc.a
|
|
LIBDIR =
|
|
SRCDIR = .
|
|
INCS = cproj.h proj.h
|
|
-CC = cc
|
|
+CC ?= cc
|
|
+CFLAGS += -fPIC -DPIC
|
|
|
|
OBJECTS= \
|
|
$(ARCHIVE)(alberfor.o) $(ARCHIVE)(alberinv.o) \
|
|
@@ -56,8 +58,13 @@
|
|
cproj.c report.c lamccfor.c lamccinv.c paksz.c untfz.c sphdz.c \
|
|
br_gctp.c Makefile cproj.h proj.h
|
|
|
|
+$(SHLIB): $(ARCHIVE)
|
|
+ mkdir objs
|
|
+ cd objs && ar x ../$(ARCHIVE) && $(CC) -shared -o ../$(SHLIB) *.o
|
|
+ rm -rf objs
|
|
+
|
|
$(ARCHIVE): $(OBJECTS)
|
|
- ranlib geolib.a
|
|
+ ranlib libgctpc.a
|
|
|
|
|
|
$(ARCHIVE)(gctp.o): $(INCS)
|