aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-04-16 20:54:56 +0000
committerGunter Knauf <gk@gknw.de>2007-04-16 20:54:56 +0000
commitf30ae93a1fbeb10947e749b1560e6b793d894666 (patch)
treed30c4f0b4a31889dd343c4cc827f89494c13c65c
parent365e8eb78e1933c89e786998df6ab8ac8e9f86e1 (diff)
added ranlib when library is created with ar.
-rw-r--r--ares/Makefile.netware5
-rw-r--r--lib/Makefile.netware5
2 files changed, 10 insertions, 0 deletions
diff --git a/ares/Makefile.netware b/ares/Makefile.netware
index ccf8d01a2..fc7e390e5 100644
--- a/ares/Makefile.netware
+++ b/ares/Makefile.netware
@@ -74,6 +74,7 @@ LDFLAGS = -nostdlib $(PRELUDE) $(OBJEXE) $(<:.def=.o) -o $@ -commandfile
AR = mwldnlm
ARFLAGS = -type library -w nocmdline $(OBJDIR)/*.o -o
LIBEXT = lib
+#RANLIB =
CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
CFLAGS += -relax_pointers
#CFLAGS += -w on
@@ -91,6 +92,7 @@ LDFLAGS = -T
AR = ar
ARFLAGS = -cq
LIBEXT = a
+RANLIB = ranlib
CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing
CFLAGS += -Wall -Wno-format -Wno-uninitialized # -pedantic
ifeq ($(LIBARCH),LIBC)
@@ -163,6 +165,9 @@ clean:
@echo Creating $@
@-$(RM) $@
@$(AR) $(ARFLAGS) $@ $^
+ifdef RANLIB
+ @$(RANLIB) $@
+endif
%.nlm: $(OBJDIR)/%.def $(OBJDIR)/%.o $(OBJDIR)/%.xdc $(OBJEXE)
@echo Linking $@
diff --git a/lib/Makefile.netware b/lib/Makefile.netware
index a9749ca1a..ad0a7fecc 100644
--- a/lib/Makefile.netware
+++ b/lib/Makefile.netware
@@ -87,6 +87,7 @@ LDFLAGS = -nostdlib $(PRELUDE) $(OBJL) -o $@ -commandfile
AR = mwldnlm
ARFLAGS = -type library -w nocmdline $(OBJS) -o
LIBEXT = lib
+#RANLIB =
CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
CFLAGS += -relax_pointers
#CFLAGS += -w on
@@ -104,6 +105,7 @@ LDFLAGS = -T
AR = ar
ARFLAGS = -cq
LIBEXT = a
+RANLIB = ranlib
CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing
CFLAGS += -Wall # -pedantic
ifeq ($(LIBARCH),LIBC)
@@ -240,6 +242,9 @@ $(TARGET).$(LIBEXT): $(OBJS)
@echo Creating $@
@-$(RM) $@
@$(AR) $(ARFLAGS) $@ $^
+ifdef RANLIB
+ @$(RANLIB) $@
+endif
$(TARGET).nlm: $(OBJDIR)/$(TARGET).def $(OBJL) $(XDCDATA)
@echo Linking $@