diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-18 00:27:12 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-18 00:27:12 +0000 |
commit | 14a8b3f6b214c0154de07f81160171bee3121a83 (patch) | |
tree | d1740661e7393ff1e3370a135f4b79b84128b11d /Makefile.vc6 | |
parent | a0d9a3b9f5142c4ccbd57733efafd4d722fbed47 (diff) | |
download | c-ares-14a8b3f6b214c0154de07f81160171bee3121a83.tar.gz c-ares-14a8b3f6b214c0154de07f81160171bee3121a83.tar.bz2 c-ares-14a8b3f6b214c0154de07f81160171bee3121a83.zip |
Make it compatible with vc60 and vc71
Diffstat (limited to 'Makefile.vc6')
-rw-r--r-- | Makefile.vc6 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Makefile.vc6 b/Makefile.vc6 index e9b59d9..7254de6 100644 --- a/Makefile.vc6 +++ b/Makefile.vc6 @@ -19,8 +19,8 @@ USE_WATT32 = 0 CC = cl -CFLAGS = -nologo -$(CFG_MODEL)$(DEBUG_MODEL) -W2 -Yd -Zi -LDFLAGS = -machine:i386 -map -warn:2 +CFLAGS = -nologo -$(CFG_MODEL)$(DEBUG_MODEL) -W3 -Yd -Zi +LDFLAGS = -machine:i386 -map OBJ_DIR = VC6_obj DEF_FILE = cares.def @@ -36,7 +36,7 @@ EX_LIBS = advapi32.lib ws2_32.lib !if "$(DEBUG_MODEL)" == "d" CFLAGS = $(CFLAGS) -D_DEBUG -GZ -LDFLAGS = $(LDFLAGS) -debug -debugtype:coff -fixed:no +LDFLAGS = $(LDFLAGS) -debug -fixed:no !else CFLAGS = $(CFLAGS) -O2 -Og @@ -78,10 +78,10 @@ all: $(OBJ_DIR) cares.lib cares.dll cares_imp.lib ahost.exe adig.exe $(OBJ_DIR): mkdir $(OBJ_DIR) -cares.lib: $(OBJECTS) +cares.lib: $(OBJ_DIR) $(OBJECTS) lib -nologo -out:$@ $(OBJECTS) -cares_imp.lib cares.dll: $(DEF_FILE) $(OBJECTS) +cares_imp.lib cares.dll: $(OBJ_DIR) $(DEF_FILE) $(OBJECTS) link $(LDFLAGS) -dll -implib:cares_imp.lib -out:cares.dll \ -def:$(DEF_FILE) $(OBJECTS) $(EX_LIBS) @@ -119,10 +119,10 @@ $(DEF_FILE): $(OBJECTS) Makefile.VC6 @echo ares_gettimeofday >> $@ @echo ares_parse_aaaa_reply >> $@ -ahost.exe: $(OBJ_DIR)\ahost.obj cares_imp.lib +ahost.exe: $(OBJ_DIR) $(OBJ_DIR)\ahost.obj cares_imp.lib link $(LDFLAGS) -out:$@ $(OBJ_DIR)\ahost.obj cares_imp.lib $(EX_LIBS) -adig.exe: $(OBJ_DIR)\adig.obj $(OBJ_DIR)\getopt.obj cares_imp.lib +adig.exe: $(OBJ_DIR) $(OBJ_DIR)\adig.obj $(OBJ_DIR)\getopt.obj cares_imp.lib link $(LDFLAGS) -out:$@ $(OBJ_DIR)\adig.obj $(OBJ_DIR)\getopt.obj cares_imp.lib $(EX_LIBS) clean: |