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

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

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

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

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

descriptor.o: descriptor.c descriptor.h
	$(CC) $(CFLAGS) -o descriptor.o -c descriptor.c

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