summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2013-04-11 14:08:51 +0200
committerGuenter Knauf <lists@gknw.net>2013-04-11 14:08:51 +0200
commit2004a7a1115e25128170e40470eba8603f7080da (patch)
tree984a68145059f5c85296d6def4af8e490ee4c022
parentc95041c6a1dcbd1882711a6551f957dd15f026f7 (diff)
downloadc-ares-2004a7a1115e25128170e40470eba8603f7080da.tar.gz
c-ares-2004a7a1115e25128170e40470eba8603f7080da.tar.bz2
c-ares-2004a7a1115e25128170e40470eba8603f7080da.zip
Create ares_build.h when buidling from Git.
-rw-r--r--Makefile.m327
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.m32 b/Makefile.m32
index 1856636..42149f5 100644
--- a/Makefile.m32
+++ b/Makefile.m32
@@ -15,6 +15,7 @@ CC = gcc
LD = gcc
RANLIB = ranlib
#RM = rm -f
+CP = cp -afv
CFLAGS = -O2 -Wall -I.
CFLAGS += -DCARES_STATICLIB
@@ -46,6 +47,9 @@ $(OBJLIB): ares.h ares_dns.h ares_private.h ares_build.h ares_rules.h
.c.o:
$(CC) $(CFLAGS) -c $<
+ares_build.h:
+ $(CP) ares_build.h.dist ares_build.h
+
check:
install:
@@ -67,4 +71,7 @@ clean:
distclean: clean
$(RM) config.cache config.log config.status Makefile
+ifeq "$(wildcard ares_build.h.dist)" "ares_build.h.dist"
+ $(RM) ares_build.h
+endif