summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4d1efd765e5bf95a874fab565880f184d510dda2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

.PHONY: all clean
CFLAGS=-std=c99 -O3 -Wall -Wextra -pedantic
OBJ=upb_parse.o upb_table.o upb_struct.o
all: $(OBJ)
clean:
	rm -f $(OBJ) tests

upb_parse.o: upb_parse.c upb_parse.h
	gcc $(CFLAGS) -o upb_parse.o -c upb_parse.c

upb_table.o: upb_table.c upb_table.h
	gcc $(CFLAGS) -o upb_table.o -c upb_table.c

upb_struct.o: upb_struct.c upb_struct.h
	gcc $(CFLAGS) -o upb_struct.o -c upb_struct.c

tests: tests.c upb_parse.c upb_parse.h
	gcc $(CFLAGS) -o tests tests.c
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback