summaryrefslogtreecommitdiff
path: root/Makefile.netware
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-03-26 01:50:44 +0000
committerGunter Knauf <gk@gknw.de>2007-03-26 01:50:44 +0000
commitf63729290b7275c41e6fe1be68b8eaed26788302 (patch)
treeb49c8ecd6c1a68de9f6e7c8061fa4c84a2158ef3 /Makefile.netware
parentb0c7d4c2b04f69b6f1a2faa293be103b577b3869 (diff)
downloadc-ares-f63729290b7275c41e6fe1be68b8eaed26788302.tar.gz
c-ares-f63729290b7275c41e6fe1be68b8eaed26788302.tar.bz2
c-ares-f63729290b7275c41e6fe1be68b8eaed26788302.zip
fixed build to use compiler-default lib extension.
Diffstat (limited to 'Makefile.netware')
-rw-r--r--Makefile.netware10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.netware b/Makefile.netware
index 874f5bf..b2876af 100644
--- a/Makefile.netware
+++ b/Makefile.netware
@@ -1,9 +1,9 @@
#################################################################
#
-## Makefile for building libares.lib (NetWare version - gnu make)
+## Makefile for building libares (NetWare version - gnu make)
## Use: make -f Makefile.netware
##
-## Comments to: Guenter Knauf <eflash@gmx.net>
+## Comments to: Guenter Knauf http://www.gknw.de/phpbb
#
#################################################################
@@ -18,7 +18,7 @@ endif
# Edit the vars below to change NLM target settings.
TARGETS = adig.nlm ahost.nlm
-LTARGET = libcares.lib
+LTARGET = libcares.$(LIBEXT)
VERSION = $(LIBCARES_VERSION)
COPYR = Copyright (C) 1996 - 2007, Daniel Stenberg, <daniel@haxx.se>
DESCR = cURL $(subst .def,,$(notdir $@)) $(LIBCARES_VERSION_STR) - http://curl.haxx.se
@@ -72,6 +72,7 @@ LD = mwldnlm
LDFLAGS = -nostdlib $(PRELUDE) $(OBJS) $(<:.def=.o) -o $@ -commandfile
AR = mwldnlm
ARFLAGS = -type library -w nocmdline $(OBJDIR)/*.o -o
+LIBEXT = lib
CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
CFLAGS += -relax_pointers
#CFLAGS += -w on
@@ -88,6 +89,7 @@ LD = nlmconv
LDFLAGS = -T
AR = ar
ARFLAGS = -cq
+LIBEXT = a
CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing
CFLAGS += -Wall -Wno-format -Wno-uninitialized # -pedantic
ifeq ($(LIBARCH),LIBC)
@@ -155,7 +157,7 @@ clean:
-$(RM) -r $(OBJDIR)
-$(RM) -r arpa
-%.lib: $(OBJS)
+%.$(LIBEXT): $(OBJS)
@echo Creating $@
@-$(RM) $@
@$(AR) $(ARFLAGS) $@ $^