diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2004-08-19 15:16:40 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2004-08-19 15:16:40 +0000 |
commit | 0724f32567d9b1509eac3c0161cd7aca0e7338d3 (patch) | |
tree | d5eb8b9345d06487cd0ee038d87d43717d8342c0 /Makefile.dj | |
parent | 12e3fda5ac93799be2f8341097cb2c10befb71dc (diff) | |
download | c-ares-0724f32567d9b1509eac3c0161cd7aca0e7338d3.tar.gz c-ares-0724f32567d9b1509eac3c0161cd7aca0e7338d3.tar.bz2 c-ares-0724f32567d9b1509eac3c0161cd7aca0e7338d3.zip |
My first CVS commit just to see if this works.
BTW. Used eclipse IDE fo this, which really kicks ass.
Diffstat (limited to 'Makefile.dj')
-rw-r--r-- | Makefile.dj | 108 |
1 files changed, 52 insertions, 56 deletions
diff --git a/Makefile.dj b/Makefile.dj index ca9e84f..de8aea0 100644 --- a/Makefile.dj +++ b/Makefile.dj @@ -1,56 +1,52 @@ -#
-# c-ares Makefile for djgpp/gcc/Watt-32
-# By Gisle Vanem <giva@bgnett.no> 2004.
-#
-.SUFFIXES: .exe
-
-WATT32_ROOT = $(subst \,/,$(WATT_ROOT))
-
-CC = gcc
-CFLAGS = -O2 -Wall -DWATT32 -Dselect=select_s -I$(WATT32_ROOT)/inc
-LDFLAGS = -s
-EX_LIBS = $(WATT32_ROOT)/lib/libwatt.a
-
-SOURCE = ares_cancel.c ares_destroy.c ares_expand_name.c ares_expand_string.c ares_fds.c \
- ares_free_hostent.c ares_free_string.c ares_gethostbyaddr.c ares_gethostbyname.c \
- ares_init.c ares_mkquery.c ares_parse_a_reply.c ares_parse_ptr_reply.c \
- ares_process.c ares_query.c ares_search.c ares_send.c ares_strerror.c \
- ares_timeout.c ares__close_sockets.c ares__get_hostent.c ares__read_line.c \
- ares_version.c
-
-OBJ_DIR = djgpp
-
-OBJECTS = $(addprefix $(OBJ_DIR)/, $(SOURCE:.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) $(SOURCE) | \
- sed -e 's/^\([a-zA-Z0-9_-]*\.o:\)/$$(OBJ_DIR)\/\1/' > depend.dj
-
--include depend.dj
+# +# 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 |