blob: 3d8f85ac54892139aba5788c0ca660db3a7130f2 (
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
|
$NetBSD: patch-aa,v 1.3 2011/09/05 20:23:52 cheusov Exp $
--- Makefile.orig 2000-02-02 01:01:39.000000000 +0000
+++ Makefile
@@ -1,15 +1,13 @@
# SScript library makefile.
-CC = gcc
-CFLAGS = -O -Wall
-
all:
- ${CC} ${CFLAGS} -c sscript.c
- ar rc libsscript.a sscript.o
- ranlib libsscript.a
+ ${LIBTOOL} --tag=CC --mode=compile ${CC} ${CFLAGS} -c sscript.c
+ ${LIBTOOL} --tag=CC --mode=link cc -o libsscript.la sscript.lo -rpath ${PREFIX}/lib -version-info 2:0
install:
- cp libsscript.a /usr/lib/libsscript.a
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libsscript.la ${DESTDIR}${PREFIX}/lib
+ ${BSD_INSTALL_DATA} sscript.h ${DESTDIR}${PREFIX}/include/libsscript
+ ${BSD_INSTALL_DATA} sscript-lib.doc ${DESTDIR}${PREFIX}/share/doc/libsscript
clean:
rm -f *.a *.o *~
|