$NetBSD: patch-aa,v 1.3 2006/05/26 21:13:01 agc Exp $ Patches to use NetBSD's libtool and PKG_SYSCONFDIR. --- Makefile.in.orig Mon Oct 20 14:51:34 1997 +++ Makefile.in @@ -9,6 +9,7 @@ LIBDIR= $(exec_prefix)/lib INCDIR= $(prefix)/include MANDIR= $(prefix)/man ETCDIR= $(prefix)/etc +EGDIR= $(prefix)/share/examples/libutf # SVR4, I hate you. What ****idiot**** dreamed this up???? # Yeah, like all csh or rc users need this crap... @@ -26,31 +27,38 @@ INSTALL_DATA= @INSTALL_DATA@ RANLIB= @RANLIB@ $(LIBS) : $(OBJS) - $(AR) $(ARFLAGS) $(LIBS) $(OBJS) + ${LIBTOOL} --mode=link cc -o ${.TARGET:.a=.la} ${OBJS:.o=.lo} -rpath ${PREFIX}/lib -version-info 3:0 ci: ci -l ure.c ure.h urelang.c utf.c utf.h install: $(LIBS) - $(srcdir)/mkinstalldirs $(LIBDIR) $(INCDIR) $(ETCDIR) $(MANDIR)/man3 - $(INSTALL_DATA) $(LIBS) $(LIBDIR) ; $(RANLIB) $(LIBDIR)/$(LIBS) + $(srcdir)/mkinstalldirs $(LIBDIR) $(INCDIR) $(EGDIR) $(MANDIR)/man3 + ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${LIBS:.a=.la} ${PREFIX}/lib $(INSTALL_DATA) $(srcdir)/ure.h $(INCDIR) $(INSTALL_DATA) $(srcdir)/utf.h $(INCDIR) - $(INSTALL_DATA) $(srcdir)/langcoll.utf $(ETCDIR) + $(INSTALL_DATA) $(srcdir)/langcoll.utf $(EGDIR) $(INSTALL_DATA) $(srcdir)/utf.3 $(MANDIR)/man3 $(INSTALL_DATA) $(srcdir)/ure.3 $(MANDIR)/man3 uninstall: rm -f $(LIBDIR)/libure.a rm -f $(LIBDIR)/$(LIBS) - rm -f $(ETCDIR)/langcoll.utf + rm -f $(EGDIR)/langcoll.utf rm -f $(INCDIR)/ure.h $(INCDIR)/urelang.h $(INCDIR)/utf.h gurep: gurep.o $(LIBS) - $(CC) gurep.o $(LIBS) -o gurep + ${LIBTOOL} --mode=link ${CC} gurep.o ${LIBS:.a=.la} -o gurep findword: findword.o $(LIBS) - $(CC) findword.o $(LIBS) -o findword + ${LIBTOOL} --mode=link ${CC} findword.o ${LIBS:.a=.la} -o findword + +ure.o: ure.c ure.h utf.h + ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c ure.c +urelang.o: urelang.c ure.h utf.h + ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c urelang.c +utf.o: utf.c utf.h + ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c utf.c tst: gurep findword test -d tests || ln -s $(srcdir)/tests .