$NetBSD: patch-ac,v 1.1 2011/03/10 10:02:34 drochner Exp $ --- testprof/makefile.shared.orig 2007-05-12 14:46:25.000000000 +0000 +++ testprof/makefile.shared @@ -1,4 +1,4 @@ -CC=libtool --mode=compile gcc +#CC=libtool --mode=compile gcc CFLAGS += -I../src/headers -I./ -Wall -W @@ -17,8 +17,12 @@ endif default: $(LIBTEST) -$(LIBTEST): $(OBJECTS) - libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION) +.SUFFIXES: .lo +.c.lo: + ${LIBTOOL} --mode=compile ${CC} -c ${CFLAGS} $< -o $@ + +$(LIBTEST): $(OBJECTS:.o=.lo) + libtool --silent --mode=link ${CC} $(CFLAGS) `find . -type f | grep "[.]lo" | xargs` -o $@ -rpath $(LIBPATH) -version-info $(VERSION) install: $(LIBTEST) libtool --silent --mode=install install -c $(LIBTEST) $(DESTDIR)$(LIBPATH)/$(LIBTEST)