blob: 978ef06d044b78728b2423ef2d2ec1d76c798854 (
plain) (
blame)
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
|
$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)
|