mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
- 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
This commit is contained in:
8
Makefile
8
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
|
||||
|
Reference in New Issue
Block a user