$NetBSD: patch-ac,v 1.4 2004/10/05 04:06:30 ben Exp $ --- Makefile.in.orig Tue Feb 11 23:24:56 2003 +++ Makefile.in @@ -5,14 +5,14 @@ # PREFIX = @prefix@ -CC = @CC@ +CC = ${LIBTOOL} --mode=compile @CC@ CFLAGS = @CFLAGS@ -Ipa_common -LIBS = @LIBS@ +LIBS = ${LIBOSSAUDIO} -L@prefix@/lib ${COMPILER_RPATH_FLAG}@prefix@/lib @LIBS@ AR = @AR@ RANLIB = @RANLIB@ INSTALL = @INSTALL@ SHARED_FLAGS = @SHARED_FLAGS@ -DLL_LIBS = @DLL_LIBS@ +DLL_LIBS = @DLL_LIBS@ ${LIBOSSAUDIO} OTHER_OBJS = @OTHER_OBJS@ @@ -57,18 +57,15 @@ all: lib/$(PALIB) lib/$(PADLLV) tests tests: bin/ $(TESTS) lib/$(PALIB): lib/ $(OBJS) Makefile $(PAINC) - $(AR) ruv lib/$(PALIB) $(OBJS) - $(RANLIB) lib/$(PALIB) + ${LIBTOOL} --mode=link @CC@ -o lib/${PALIB:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 0:18:0 $(DLL_LIBS) lib/$(PADLLV): lib/ $(OBJS) Makefile $(PAINC) - $(CC) $(SHARED_FLAGS) -o lib/$(PADLLV) $(OBJS) $(DLL_LIBS) $(TESTS): bin/%: lib/$(PALIB) Makefile $(PAINC) pa_tests/%.c - $(CC) -o $@ $(CFLAGS) pa_tests/$*.c lib/$(PALIB) $(LIBS) + ${LIBTOOL} --mode=link @CC@ -o $@ $(CFLAGS) pa_tests/$*.c lib/${PALIB:.a=.la} $(LIBS) install: lib/$(PALIB) lib/$(PADLLV) - $(INSTALL) -m 644 lib/$(PADLLV) $(PREFIX)/lib/$(PADLLV) - $(INSTALL) -m 644 lib/$(PALIB) $(PREFIX)/lib/$(PALIB) + ${LIBTOOL} --mode=install $(INSTALL) -m 644 lib/${PALIB:.a=.la} $(PREFIX)/lib/ cd $(PREFIX)/lib && rm -f $(PADLL) && ln -s $(PADLLV) $(PADLL) $(INSTALL) -m 644 pa_common/portaudio.h $(PREFIX)/include/portaudio.h @echo ""