1 $NetBSD: patch-ab,v 1.3 2008/04/04 15:24:56 joerg Exp $
3 --- rx/Makefile.in.orig Fri Nov 22 13:47:49 1996
6 $(CC) $(ALL_CFLAGS) -DSCM_MAGIC_SNARFER -E $< | grep "^%%%" | sed -e "s/^%%%//" > $@ ; \
9 - $(CC) -c $(ALL_CFLAGS) $(DEFS) -I$(srcdir) $<
10 + $(LIBTOOL) --mode=compile $(CC) -c $(ALL_CFLAGS) $(DEFS) -I$(srcdir) $<
16 - test -d $(libdir) || mkdir $(libdir)
17 - test -d $(includedir) || mkdir $(includedir)
18 + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(libdir)
19 + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(includedir)
20 - $(INSTALL) librx.a $(libdir)/librx.a
21 - $(RANLIB) $(libdir)/librx.a
22 - $(INSTALL) $(srcdir)/inst-rxposix.h $(includedir)/rxposix.h
23 + $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) librx.la ${DESTDIR}$(libdir)
24 + $(BSD_INSTALL_DATA) $(srcdir)/inst-rxposix.h ${DESTDIR}$(includedir)/rxposix.h
28 - -rm -f $(libdir)/librx.a
29 + -$(LIBTOOL) rm -f $(libdir)/librx.la
30 -rm -f $(includedir)/rxposix.h
33 - -rm -f $(libobjs) librx.a $(opt_objs)
34 + -$(LIBTOOL) rm -f $(libobjs) librx.a $(opt_objs)
37 -rm Makefile config.status config.log rgx.x
39 rm -rf `cat .fname` .fname
42 -librx.a: $(libobjs) $(opt_objs)
44 - $(AR) $(AR_FLAGS) librx.a $(libobjs) $(opt_objs)
46 +librx.la: $(libobjs) $(opt_objs)
47 + $(LIBTOOL) --mode=link $(CC) -o $@ $(libobjs:.o=.lo) $(opt_objs:.o=.lo) \
48 + -rpath $(libdir) -version-info $(RX_MAJOR):$(RX_MINOR)