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

.PHONY: all clean
CC=gcc
CXX=g++
CFLAGS=-std=c99
CPPFLAGS=-O0 -Wall -Wextra -pedantic -g -DUPB_UNALIGNED_READS_OK
OBJ=upb_parse.o upb_table.o upb_msg.o upb_enum.o upb_context.o upb_string.o descriptor.o
all: $(OBJ) test_table tests upbc
clean:
	rm -f *.o test_table tests

libupb.a: $(OBJ)
	ar rcs libupb.a $(OBJ)
test_table: libupb.a
upbc: libupb.a
benchmark: libupb.a

-include deps
deps: *.c *.h
	gcc -MM *.c > deps
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback