blob: 42a45b03cb861e2aa6778607157919b2aabef1b0 (
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
|
--- Makefile.orig Thu Jan 3 20:26:00 2002
+++ Makefile Fri Aug 23 13:12:59 2002
@@ -1,10 +1,10 @@
VERSION= 3.1
TARGETS= libsectok.a libsectok.so.$(VERSION)
-PREFIX= /usr/local
+PREFIX?= /usr/local
# You might have to add -I/usr/include/openssl to CFLAGS
CFLAGS= -g -Wall -DDL_READERS
-LDFLAGS= -x -Bshareable -Bforcearchive -shared
+LDFLAGS= -shared -x --whole-archive
# You may have to add getopt.c to SRC if your getopt doesn't have optreset
SRC= atr.c cmdtab.c cyberflex.c input.c r1r2.c readers.c sc7816.c sectok.c
@@ -47,6 +47,8 @@
install :
$(INSTALL) -m 755 sectok.h $(PREFIX)/include
$(INSTALL) -m 755 $(TARGETS) $(PREFIX)/lib
+ ln -s $(PREFIX)/lib/libsectok.so.${VERSION} $(PREFIX)/lib/libsectok.so.3
+ $(INSTALL) -m 644 sectok.3 $(PREFIX)/man/man3
release :
rm -rf $(RELEASE)
|