diff options
Diffstat (limited to 'vtparse/src/Makefile')
-rw-r--r-- | vtparse/src/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vtparse/src/Makefile b/vtparse/src/Makefile new file mode 100644 index 0000000..044a487 --- /dev/null +++ b/vtparse/src/Makefile @@ -0,0 +1,19 @@ + +RUBY_GENERATION_FILES = vtparse_gen_c_tables.rb vtparse_tables.rb + +all: vtparse_table.c vtparse_table.h test + +clean: + rm -f vtparse_table.c vtparse_table.h test + +vtparse_table.c: $(RUBY_GENERATION_FILES) + ruby vtparse_gen_c_tables.rb + +vtparse_table.h: $(RUBY_GENERATION_FILES) + ruby vtparse_gen_c_tables.rb + +test: vtparse.c vtparse.h vtparse_table.c vtparse_table.h vtparse_test.c + gcc -o test vtparse_test.c vtparse.c vtparse_table.c + +.PHONY: all clean + |