mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Clean up build a little and add .gitignore.
This commit is contained in:
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
*.o
|
||||||
|
*~
|
||||||
|
|
||||||
|
# Autogenerated by flex/bison
|
||||||
|
lexer.yy.*
|
||||||
|
parser.tab.*
|
||||||
|
parser.info
|
||||||
|
|
||||||
|
# Test binaries
|
||||||
|
jv_test
|
||||||
|
jv_parse
|
||||||
|
parsertest
|
@ -20,13 +20,13 @@ parser.tab.h: parser.tab.c
|
|||||||
parsertest: parser.tab.c lexer.yy.c main.c opcode.c bytecode.c compile.c execute.c builtin.c jv.c jv_parse.c jv_print.c jv_dtoa.c
|
parsertest: parser.tab.c lexer.yy.c main.c opcode.c bytecode.c compile.c execute.c builtin.c jv.c jv_parse.c jv_print.c jv_dtoa.c
|
||||||
$(CC) -o $@ $^
|
$(CC) -o $@ $^
|
||||||
|
|
||||||
jvtest: jvtest.c jv.c jv_print.c
|
jv_test: jv_test.c jv.c jv_print.c jv_dtoa.c
|
||||||
$(CC) -DNO_JANSSON -o $@ $^
|
$(CC) -DNO_JANSSON -o $@ $^
|
||||||
|
|
||||||
jv_parse: jv_parse.c jv.c jv_print.c jv_dtoa.c
|
jv_parse: jv_parse.c jv.c jv_print.c jv_dtoa.c
|
||||||
$(CC) -DNO_JANSSON -o $@ $^ -DJV_PARSE_MAIN
|
$(CC) -DNO_JANSSON -o $@ $^ -DJV_PARSE_MAIN
|
||||||
|
|
||||||
|
|
||||||
test: jvtest
|
test: jv_test
|
||||||
valgrind --error-exitcode=1 -q --leak-check=full ./jvtest
|
valgrind --error-exitcode=1 -q --leak-check=full ./jv_test
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user