summaryrefslogtreecommitdiff
path: root/Makefile.dj
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-04-16 16:52:56 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-04-16 16:52:56 +0000
commit0fff58cc5f95611957c8ac271e651500021b40f7 (patch)
tree2a528e77871f97d0ee37c82ac999570eaec4465b /Makefile.dj
parent35b7d087685477ec9a91f945507d41dff0c942f2 (diff)
downloadc-ares-0fff58cc5f95611957c8ac271e651500021b40f7.tar.gz
c-ares-0fff58cc5f95611957c8ac271e651500021b40f7.tar.bz2
c-ares-0fff58cc5f95611957c8ac271e651500021b40f7.zip
No need for USE_MANUAL. Use select_s() instead of select().
Added ares_getopt.o to program sample objects.
Diffstat (limited to 'Makefile.dj')
-rw-r--r--Makefile.dj7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile.dj b/Makefile.dj
index aa1220c..32779a5 100644
--- a/Makefile.dj
+++ b/Makefile.dj
@@ -21,7 +21,7 @@ CFLAGS += -DWATT32 -DHAVE_AF_INET6 -DHAVE_PF_INET6 -DHAVE_FIONBIO \
-DRECV_TYPE_ARG1='int' -DRECV_TYPE_ARG2='void*' \
-DRECV_TYPE_ARG3='int' -DRECV_TYPE_ARG4='int' \
-DRECV_TYPE_RETV='int' -DHAVE_STRUCT_TIMEVAL \
- -UHAVE_CONFIG_H
+ -Dselect=select_s -UHAVE_CONFIG_H
LDFLAGS = -s
@@ -38,7 +38,6 @@ endif
ifeq ($(USE_ZLIB),1)
EX_LIBS += $(ZLIB_ROOT)/libz.a
- CFLAGS += -DUSE_MANUAL
endif
ifeq ($(USE_IDNA),1)
@@ -55,10 +54,10 @@ all: $(OBJ_DIR) libcares.a ahost.exe adig.exe
libcares.a: $(OBJECTS)
ar rs $@ $?
-ahost.exe: ahost.c $(OBJ_HACK)
+ahost.exe: ahost.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK)
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS)
-adig.exe: adig.c $(OBJ_HACK)
+adig.exe: adig.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK)
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS)
clean: