summaryrefslogtreecommitdiff
path: root/Makefile
blob: 927c5c8a46d9b27b6ff23c08b4549b802f140d21 (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=-O3 -Wall -Wextra -pedantic -g -DNDEBUG -DUPB_UNALIGNED_READS_OK -fomit-frame-pointer
OBJ=upb_parse.o upb_table.o upb_msg.o descriptor.o upb_inlinedefs.o
all: $(OBJ) test_table tests
clean:
	rm -f $(OBJ) tests

upb_parse.o: upb_parse.c upb_parse.h
upb_table.o: upb_table.c upb_table.h
upb_msg.o: upb_msg.c upb_msg.h
upb_inlinedefs.o: upb_inlinedefs.c upb_msg.h
descriptor.o: descriptor.c descriptor.h
test_table: test_table.cc upb_table.o

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