summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-20 01:06:50 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-20 01:06:50 +0000
commitc260301476fefa97f9c718caee8737f008e36928 (patch)
tree2c17f854a5ebcbadd002e8fd68dd326a798b5c32 /Makefile
parentbce5b8a1464311098345a562d86ea84f9fbab60a (diff)
- use $(CC) instead of gcc when building testexpr2
- modify ast_expr2.fl and ast_expr2.y to not try to register the file version in a STANDALONE build - add config.status as a dependency on testexpr2 to ensure configure is executed before building it - add include/asterisk/buildopts.h as a dependency for testexpr2 as well - add -Iinclude to the gcc commands for building the testexpr2 objects so that it can find the local asterisk headers git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e0db13a79..8d4a6e838 100644
--- a/Makefile
+++ b/Makefile
@@ -423,10 +423,10 @@ ast_expr2.c ast_expr2.h:
ast_expr2f.c:
flex -o $@ --full ast_expr2.fl
-testexpr2: ast_expr2f.c ast_expr2.c ast_expr2.h
- gcc -g -c -DSTANDALONE ast_expr2f.c
- gcc -g -c -DSTANDALONE ast_expr2.c
- gcc -g -o testexpr2 ast_expr2f.o ast_expr2.o
+testexpr2: config.status include/asterisk/buildopts.h ast_expr2f.c ast_expr2.c ast_expr2.h
+ $(CC) -g -c -Iinclude -DSTANDALONE ast_expr2f.c
+ $(CC) -g -c -Iinclude -DSTANDALONE ast_expr2.c
+ $(CC) -g -o testexpr2 ast_expr2f.o ast_expr2.o
rm ast_expr2.o ast_expr2f.o
manpage: asterisk.8