projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c95041c
)
Create ares_build.h when buidling from Git.
author
Guenter Knauf
<lists@gknw.net>
Thu, 11 Apr 2013 12:08:51 +0000
(14:08 +0200)
committer
Guenter Knauf
<lists@gknw.net>
Thu, 11 Apr 2013 12:08:51 +0000
(14:08 +0200)
Makefile.m32
patch
|
blob
|
history
diff --git
a/Makefile.m32
b/Makefile.m32
index
1856636
..
42149f5
100644
(file)
--- 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