diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-09-02 17:24:17 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-09-02 17:24:17 +0100 |
commit | 9da3e0d37306ed053289b9dc6200e61f3d8b0f8d (patch) | |
tree | 55b01edaeb67aede0e8eff6b76e692928dc12673 | |
parent | f72c5ffac0dd03bafd01b73011e8409371429326 (diff) |
Clean up build a little and add .gitignore.
-rw-r--r-- | .gitignore | 12 | ||||
-rw-r--r-- | c/Makefile | 6 | ||||
-rw-r--r-- | c/jv_test.c (renamed from c/jvtest.c) | 0 |
3 files changed, 15 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..130e618d --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +*.o +*~ + +# Autogenerated by flex/bison +lexer.yy.* +parser.tab.* +parser.info + +# Test binaries +jv_test +jv_parse +parsertest
\ No newline at end of file @@ -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 $(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 $@ $^ jv_parse: jv_parse.c jv.c jv_print.c jv_dtoa.c $(CC) -DNO_JANSSON -o $@ $^ -DJV_PARSE_MAIN -test: jvtest - valgrind --error-exitcode=1 -q --leak-check=full ./jvtest +test: jv_test + valgrind --error-exitcode=1 -q --leak-check=full ./jv_test diff --git a/c/jvtest.c b/c/jv_test.c index 2b5a6276..2b5a6276 100644 --- a/c/jvtest.c +++ b/c/jv_test.c |