summaryrefslogtreecommitdiff
path: root/Makefile.netware
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-04-16 13:17:26 (GMT)
committerGunter Knauf <gk@gknw.de>2007-04-16 13:17:26 (GMT)
commit72beefe4f457747da7ec76380ab0607e995df445 (patch)
tree72c5eb5e3cba1cbdb9b86da4fbd715c99c5555b0 /Makefile.netware
parentd741a92e20da2e76cadb9dd6be5d7b9d54cfcc34 (diff)
downloadc-ares-72beefe4f457747da7ec76380ab0607e995df445.zip
c-ares-72beefe4f457747da7ec76380ab0607e995df445.tar.gz
c-ares-72beefe4f457747da7ec76380ab0607e995df445.tar.bz2
ares_getopt() command-line parser function does not belong to actual c-ares library. It is just a convinience source code helper function for use in example programs adig.c and ahost.c
Diffstat (limited to 'Makefile.netware')
-rw-r--r--Makefile.netware13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile.netware b/Makefile.netware
index 6e39c84..ccf8d01 100644
--- a/Makefile.netware
+++ b/Makefile.netware
@@ -70,7 +70,7 @@ CFLAGS = $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc
ifeq ($(CC),mwccnlm)
LD = mwldnlm
-LDFLAGS = -nostdlib $(PRELUDE) $(OBJS) $(<:.def=.o) -o $@ -commandfile
+LDFLAGS = -nostdlib $(PRELUDE) $(OBJEXE) $(<:.def=.o) -o $@ -commandfile
AR = mwldnlm
ARFLAGS = -type library -w nocmdline $(OBJDIR)/*.o -o
LIBEXT = lib
@@ -132,7 +132,8 @@ endif
# Makefile.inc provides the CSOURCES and HHEADERS defines
include Makefile.inc
-OBJS := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES)))
+OBJLIB := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES)))
+OBJEXE = $(OBJLIB) $(OBJDIR)/ares_getopt.o
.PHONY: lib nlm prebuild dist install clean
@@ -143,7 +144,7 @@ nlm: prebuild $(TARGETS)
prebuild: $(OBJDIR) $(OBJDIR)/version.inc config.h arpa/nameser.h
dist: all
- -$(RM) $(OBJS) $(OBJDIR)/*.map $(OBJDIR)/*.ncv
+ -$(RM) $(OBJLIB) $(OBJDIR)/*.map $(OBJDIR)/*.ncv
-$(RM) $(OBJDIR)/*.def $(OBJDIR)/*.xdc $(OBJDIR)/version.inc
install: $(INSTDIR) all
@@ -158,12 +159,12 @@ clean:
-$(RM) -r $(OBJDIR)
-$(RM) -r arpa
-%.$(LIBEXT): $(OBJS)
+%.$(LIBEXT): $(OBJLIB)
@echo Creating $@
@-$(RM) $@
@$(AR) $(ARFLAGS) $@ $^
-%.nlm: $(OBJDIR)/%.def $(OBJDIR)/%.o $(OBJDIR)/%.xdc $(OBJS)
+%.nlm: $(OBJDIR)/%.def $(OBJDIR)/%.o $(OBJDIR)/%.xdc $(OBJEXE)
@echo Linking $@
@-$(RM) $@
@$(LD) $(LDFLAGS) $<
@@ -247,7 +248,7 @@ ifdef IMPORTS
@echo $(DL)import $(IMPORTS)$(DL) >> $@
endif
ifeq ($(LD),nlmconv)
- @echo $(DL)input $(OBJS)$(DL) >> $@
+ @echo $(DL)input $(OBJEXE)$(DL) >> $@
@echo $(DL)input $(PRELUDE)$(DL) >> $@
@echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@
endif