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

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

libupb.a: $(OBJ)
	ar rcs libupb.a $(OBJ)
test_table: 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