summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-06-14 12:30:27 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-06-14 12:30:27 -0700
commitf4c00fc9798d5089f7d22054a45f645cd1a0936c (patch)
treeeb4cebf8e8a81db8428ac31bb4ec05c951a6c540 /Makefile
parent0aedd1825f7e5acbddf39d72233d28ee4c302c4c (diff)
More work on the table implementation.
It currently beats std::map and std::hash_map by >10x.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index a781fa2..da620fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,18 @@
.PHONY: all clean
CC=gcc
-CFLAGS=-std=c99 -O3 -Wall -Wextra -pedantic
+CFLAGS=-std=c99
+CPPFLAGS=-O3 -Wall -Wextra -pedantic -g
OBJ=upb_parse.o upb_table.o upb_struct.o descriptor.o
-all: $(OBJ)
+all: $(OBJ) test_table
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
+test_table: test_table.cc upb_table.o
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