summaryrefslogtreecommitdiff
path: root/Makefile.dj
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2007-12-11 17:22:20 +0000
committerGisle Vanem <gvanem@broadpark.no>2007-12-11 17:22:20 +0000
commit4f9bf2ec64a00f8c933402a1076100aa38f87662 (patch)
tree79e5c41b819194f1b5a4b5f10f882e7b25fa9bfb /Makefile.dj
parent89556eed2cae6f8473afdb183ed8491673937bf0 (diff)
downloadc-ares-4f9bf2ec64a00f8c933402a1076100aa38f87662.tar.gz
c-ares-4f9bf2ec64a00f8c933402a1076100aa38f87662.tar.bz2
c-ares-4f9bf2ec64a00f8c933402a1076100aa38f87662.zip
Build acountry.exe. Added 'socklen_t' define.
Diffstat (limited to 'Makefile.dj')
-rw-r--r--Makefile.dj9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.dj b/Makefile.dj
index 9b4d153..15215c3 100644
--- a/Makefile.dj
+++ b/Makefile.dj
@@ -22,7 +22,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 \
- -Dselect=select_s -UHAVE_CONFIG_H
+ -Dselect=select_s -Dsocklen_t=int -UHAVE_CONFIG_H
LDFLAGS = -s
@@ -49,7 +49,7 @@ EX_LIBS += $(WATT32_ROOT)/lib/libwatt.a
OBJECTS = $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
-all: $(OBJ_DIR) libcares.a ahost.exe adig.exe
+all: $(OBJ_DIR) libcares.a ahost.exe adig.exe acountry.exe
@echo Welcome to c-ares.
libcares.a: $(OBJECTS)
@@ -61,11 +61,14 @@ ahost.exe: ahost.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK)
adig.exe: adig.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK)
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS)
+acountry.exe: acountry.c $(OBJ_DIR)/ares_getopt.o $(OBJ_HACK)
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS)
+
clean:
rm -f $(OBJECTS) libcares.a
vclean realclean: clean
- rm -f ahost.exe adig.exe depend.dj
+ rm -f ahost.exe adig.exe acountry.exe depend.dj
- rmdir $(OBJ_DIR)
-include depend.dj