--- http/Makefile.orig 2015-10-26 10:22:55 UTC +++ http/Makefile @@ -2,7 +2,7 @@ # lint configuration. I use lclint. # -LIBRARY=libhttp.a +LIBRARY=libhttp.la SHAREDLIB=libhttp.so.0 SONAME=libhttp.so.0 @@ -23,16 +23,15 @@ SUBDIRS= # rule to create .o files from .c files .c.o: $(RM) $@ - $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $< + $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $< -all: $(TARGET_STATIC) $(TARGET_SHARED) +all: $(TARGET_STATIC) # targets to build $(TARGET_STATIC):: $(OBJS) - $(RM) $@ \ - $(AR) $@ $(OBJS) - $(RANLIB) $@ + $(RM) $@ + $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) -rpath ${PREFIX}/lib -version-info 0:2 $(TARGET_SHARED):: $(OBJS) $(RM) $@ ; \