$NetBSD: patch-aa,v 1.2 2004/02/28 14:26:08 minskim Exp $ --- lib/Makefile.in.orig 2003-01-16 04:33:32.000000000 -0600 +++ lib/Makefile.in @@ -13,7 +13,7 @@ VERSION_MAJOR=1 VERSION_MINOR=5 CC = @CC@ -CFLAGS = @CFLAGS_LIBTLEN@ -I.. -fPIC -Wall -ggdb +CFLAGS = @CFLAGS_LIBTLEN@ -I.. -fPIC LIBS= @LIBS_LIBTLEN@ MAKE = @MAKE@ @@ -33,7 +33,7 @@ STATIC = libtlen.a HEADERS = *.h libincludedir = /libtlen -all: static shared test-client +all: static static: $(STATIC) shared: $(SHARED) test-client: testclient @@ -49,15 +49,17 @@ static: $(STATIC) shared: $(SHARED) $(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} + +.c.o: + ${LIBTOOL} --mode=compile ${CC} -c ${CPPFLAGS} ${CFLAGS} $< -o $@ $(SHARED): $(OBJS) $(CC) -g -O2 -shared -Wl,-soname,libtlen.so.$(VERSION_MAJOR) -o $(SHARED) $(OBJS) $(LIBS) -lc $(LN_S) -f $(SHARED) $(SHAREDM) $(LN_S) -f $(SHARED) $(SHAREDMM) -install: install-shared install-static install-devel +install: install-static install-devel install-shared: $(INSTALL) -d $(DESTDIR)$(libdir) @@ -66,8 +68,7 @@ install-shared: cd $(DESTDIR)$(libdir) && $(LN_S) -f $(SHARED) $(SHAREDMM) install-static: - $(INSTALL) -d $(DESTDIR)$(libdir) - $(INSTALL) -m 755 $(STATIC) $(DESTDIR)$(libdir) + ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${STATIC:.a=.la} ${PREFIX}/lib install-devel: $(INSTALL) -d $(DESTDIR)$(includedir)$(libincludedir)