blob: 7c1f4211ceea822f3b5c59c1711bdb13cb56b1ed (
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
26
27
28
29
30
31
32
33
|
$NetBSD: patch-aa,v 1.4 2008/11/27 21:15:36 minskim Exp $
--- src/Makefile.in.orig 2008-11-17 16:55:36.000000000 +0900
+++ src/Makefile.in
@@ -95,19 +95,11 @@ OBJ = qCgiRequest.o \
all: qdecoder
qdecoder: ${OBJ}
- ${AR} ${ARFLAGS} ${LIBNAME} ${OBJ}
- ${RANLIB} ${LIBNAME}
- ${LD} ${LDFLAGS} ${OBJ} -o ${SLIBREALNAME}
- ${CHMOD} 0644 ${SLIBREALNAME}
- ${RM} -f ${SLIBNAME}
- ${LN_S} ${SLIBREALNAME} ${SLIBNAME}
+ ${LIBTOOL} --mode=link ${CC} -o ${LIBNAME:.a=.la} ${OBJ:.o=.lo} \
+ -rpath ${PREFIX}/lib -version-info ${SLIBVERSION}:0:0
install: all
- ${INSTALL_DATA} qDecoder.h ${HEADERDIR}/qDecoder.h
- ${INSTALL_DATA} ${LIBNAME} ${LIBDIR}/${LIBNAME}
- ${INSTALL_DATA} ${SLIBREALNAME} ${LIBDIR}/${SLIBREALNAME}
- ${RM} -f ${LIBDIR}/${SLIBNAME}
- ${LN_S} ${LIBDIR}/${SLIBREALNAME} ${LIBDIR}/${SLIBNAME}
+ ${LIBTOOL} --mode=install ${INSTALL} ${LIBNAME:.a=.la} ${LIBDIR}
deinstall: uninstall
uninstall:
@@ -127,4 +119,4 @@ clean:
## Compile
.c.o:
- ${CC} ${CFLAGS} ${DEFS} ${INCLUDE} -c -o $@ $<
+ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} ${DEFS} ${INCLUDE} -c -o $@ $<
|