summaryrefslogtreecommitdiff
path: root/vtparse/src/Makefile
blob: 044a487bf5433c598be1380f65b27c4fbbae813b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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