68 lines
2.4 KiB
Text
68 lines
2.4 KiB
Text
$NetBSD: patch-aa,v 1.6 2010/04/17 21:00:33 agc Exp $
|
|
|
|
--- Makefile.in.orig 2006-05-26 22:14:56.000000000 +0200
|
|
+++ Makefile.in
|
|
@@ -5,10 +5,12 @@ VPATH= @srcdir@
|
|
|
|
prefix= @prefix@
|
|
exec_prefix= @exec_prefix@
|
|
+mandir= @mandir@
|
|
LIBDIR= $(exec_prefix)/lib
|
|
INCDIR= $(prefix)/include
|
|
-MANDIR= $(prefix)/man
|
|
+MANDIR= $(mandir)
|
|
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 +28,38 @@ INSTALL_DATA= @INSTALL_DATA@
|
|
RANLIB= @RANLIB@
|
|
|
|
$(LIBS) : $(OBJS)
|
|
- $(AR) $(ARFLAGS) $(LIBS) $(OBJS)
|
|
+ ${LIBTOOL} --mode=link --tag=CC 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)
|
|
- $(INSTALL_DATA) $(srcdir)/ure.h $(INCDIR)
|
|
- $(INSTALL_DATA) $(srcdir)/utf.h $(INCDIR)
|
|
- $(INSTALL_DATA) $(srcdir)/langcoll.utf $(ETCDIR)
|
|
- $(INSTALL_DATA) $(srcdir)/utf.3 $(MANDIR)/man3
|
|
- $(INSTALL_DATA) $(srcdir)/ure.3 $(MANDIR)/man3
|
|
+ $(srcdir)/mkinstalldirs ${DESTDIR}$(LIBDIR) ${DESTDIR}$(INCDIR) ${DESTDIR}$(EGDIR) ${DESTDIR}$(MANDIR)/man3
|
|
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${LIBS:.a=.la} ${DESTDIR}${PREFIX}/lib
|
|
+ $(INSTALL_DATA) $(srcdir)/ure.h ${DESTDIR}$(INCDIR)
|
|
+ $(INSTALL_DATA) $(srcdir)/utf.h ${DESTDIR}$(INCDIR)
|
|
+ $(INSTALL_DATA) $(srcdir)/langcoll.utf ${DESTDIR}$(EGDIR)
|
|
+ $(INSTALL_DATA) $(srcdir)/utf.3 ${DESTDIR}$(MANDIR)/man3
|
|
+ $(INSTALL_DATA) $(srcdir)/ure.3 ${DESTDIR}$(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 --tag=CC ${CC} gurep.o ${LIBS:.a=.la} -o gurep
|
|
|
|
findword: findword.o $(LIBS)
|
|
- $(CC) findword.o $(LIBS) -o findword
|
|
+ ${LIBTOOL} --mode=link --tag=CC ${CC} findword.o ${LIBS:.a=.la} -o findword
|
|
+
|
|
+ure.o: ure.c ure.h utf.h
|
|
+ ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} -c ure.c
|
|
+urelang.o: urelang.c ure.h utf.h
|
|
+ ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} -c urelang.c
|
|
+utf.o: utf.c utf.h
|
|
+ ${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} -c utf.c
|
|
|
|
tst: gurep findword
|
|
test -d tests || ln -s $(srcdir)/tests .
|