summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7a98b7e08afaef5817118a92bff1c795016029de (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=-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 $(OBJ) 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