From 876ce5ee7c6cbea9de5f1f6cc75960788ce3d706 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 29 Aug 2008 21:05:45 +0000 Subject: [PATCH] Remove bit from nselib-bin/Makefile.in. I thought it had been done already. This makes the rule to generate a module general so all you should have to do in the common case is add .so as a dependency of the "all" target. --- nselib-bin/Makefile.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nselib-bin/Makefile.in b/nselib-bin/Makefile.in index 72e5c2b5c..fd088be26 100644 --- a/nselib-bin/Makefile.in +++ b/nselib-bin/Makefile.in @@ -15,15 +15,15 @@ LIBS = @LIBS@ LIBTOOL= ./libtool LTFLAGS = --tag=CC --silent -all: bit.so +all: -bit.so: bit.c @LIBTOOL_DEPS@ - $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c bit.c - $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -avoid-version -module -rpath $(nselib_bindir) $(LDFLAGS) -o bit.la bit.lo $(LIBS) - mv .libs/bit.so bit.so +%.so: %.c @LIBTOOL_DEPS@ + $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c + $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -avoid-version -module -rpath $(nselib_bindir) $(LDFLAGS) -o $*.la $*.lo $(LIBS) + mv .libs/$*.so $*.so clean: - rm -f bit.so *.la *.lo + rm -f *.so *.la *.lo rm -rf .libs distclean: clean