-#\r
-# c-ares Makefile for djgpp/gcc/Watt-32\r
-# By Gisle Vanem <giva@bgnett.no> 2004.\r
-#\r
-.SUFFIXES: .exe\r
-\r
-WATT32_ROOT = $(subst \,/,$(WATT_ROOT))\r
-\r
-CC = gcc\r
-CFLAGS = -O2 -Wall -DWATT32 -Dselect=select_s -I$(WATT32_ROOT)/inc\r
-LDFLAGS = -s\r
-EX_LIBS = $(WATT32_ROOT)/lib/libwatt.a\r
-\r
-SOURCE = ares_cancel.c ares_destroy.c ares_expand_name.c ares_expand_string.c ares_fds.c \\r
- ares_free_hostent.c ares_free_string.c ares_gethostbyaddr.c ares_gethostbyname.c \\r
- ares_init.c ares_mkquery.c ares_parse_a_reply.c ares_parse_ptr_reply.c \\r
- ares_process.c ares_query.c ares_search.c ares_send.c ares_strerror.c \\r
- ares_timeout.c ares__close_sockets.c ares__get_hostent.c ares__read_line.c \\r
- ares_version.c\r
-\r
-OBJ_DIR = djgpp\r
-\r
-OBJECTS = $(addprefix $(OBJ_DIR)/, $(SOURCE:.c=.o))\r
-\r
-\r
-all: $(OBJ_DIR) libcares.a ahost.exe adig.exe\r
- @echo Welcome to c-ares.\r
-\r
-$(OBJ_DIR):\r
- - mkdir $(OBJ_DIR)\r
-\r
-libcares.a: $(OBJECTS)\r
- ar rs $@ $?\r
-\r
-ahost.exe: ahost.c libcares.a\r
- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS)\r
-\r
-adig.exe: adig.c libcares.a\r
- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS)\r
-\r
-clean:\r
- rm -f $(OBJECTS) libcares.a\r
-\r
-vclean realclean: clean\r
- rm -f ahost.exe adig.exe depend.dj\r
- - rmdir $(OBJ_DIR)\r
-\r
-$(OBJ_DIR)/%.o: %.c\r
- $(CC) $(CFLAGS) -o $@ -c $<\r
- @echo\r
-\r
-depend:\r
- $(CC) -MM $(CFLAGS) $(SOURCE) | \\r
- sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/$$(OBJ_DIR)\/\1/' > depend.dj\r
-\r
--include depend.dj\r
+#
+# c-ares Makefile for djgpp/gcc/Watt-32
+# By Gisle Vanem <giva@bgnett.no> 2004.
+#
+.SUFFIXES: .exe
+
+include Makefile.inc
+
+WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
+ZLIB_ROOT = /dev/env/DJGPP/contrib/zlib
+
+CC = gcc
+CFLAGS = -O2 -Wall -DWATT32 -Dselect=select_s -I$(WATT32_ROOT)/inc
+LDFLAGS = -s
+EX_LIBS = $(WATT32_ROOT)/lib/libwatt.a
+
+OBJ_DIR = djgpp
+
+OBJECTS = $(addprefix $(OBJ_DIR)/, $(CSOURCES:.c=.o))
+
+
+all: $(OBJ_DIR) libcares.a ahost.exe adig.exe
+ @echo Welcome to c-ares.
+
+$(OBJ_DIR):
+ - mkdir $(OBJ_DIR)
+
+libcares.a: $(OBJECTS)
+ ar rs $@ $?
+
+ahost.exe: ahost.c libcares.a
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS)
+
+adig.exe: adig.c libcares.a
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(EX_LIBS)
+
+clean:
+ rm -f $(OBJECTS) libcares.a
+
+vclean realclean: clean
+ rm -f ahost.exe adig.exe depend.dj
+ - rmdir $(OBJ_DIR)
+
+$(OBJ_DIR)/%.o: %.c
+ $(CC) $(CFLAGS) -o $@ -c $<
+ @echo
+
+depend:
+ $(CC) -MM $(CFLAGS) $(CSOURCES) | \
+ sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/$$(OBJ_DIR)\/\1/' > depend.dj
+
+-include depend.dj