blob: 1109d45f3f55fddea1620fdd6b1d3e7aa1d80db1 (
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
34
35
36
37
38
39
|
$NetBSD: patch-ac,v 1.5 2007/10/14 07:48:52 adam Exp $
--- lib/Makefile.in.orig 2006-04-18 21:05:11.000000000 +0200
+++ lib/Makefile.in
@@ -11,7 +11,7 @@ VERSION_MAJOR=3
VERSION_MINOR=5
CC = @CC@
-CFLAGS = @CFLAGS_LIBGADU@ -I. -I..
+CFLAGS += @CFLAGS_LIBGADU@ -I. -I..
LIBS = @LIBS_LIBGADU@
MAKE = @MAKE@
@@ -45,13 +45,12 @@ distclean: clean
static: dep $(STATIC)
$(STATIC): $(OBJS)
- $(AR) r $(STATIC) $(OBJS)
- $(RANLIB) $(STATIC)
+ ${LIBTOOL} --mode=link ${CC} -o ${STATIC:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info ${VERSION_MAJOR}:${VERSION_MINOR}
#
-%.lo: %.c
- $(CC) -c $(CPPFLAGS) $(CFLAGS) -fPIC $< -o $@
+%.o: %.c
+ ${LIBTOOL} --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
shared: dep $(SHARED)
@@ -86,7 +85,7 @@ install-shared: install-common @strip_li
cd $(DESTDIR)$(libdir) && $(LN_S) -f $(SHARED) $(SHAREDMM)
install-static: install-common
- $(INSTALL) -m 755 $(STATIC) $(DESTDIR)$(libdir)
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} ${STATIC:.a=.la} ${PREFIX}/lib
strip-libgadu-so:
$(STRIP) $(SHARED)
|