summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@ubuntu32.(none)>2009-06-03 22:58:29 -0700
committerJoshua Haberman <joshua@ubuntu32.(none)>2009-06-03 22:58:29 -0700
commit0aedd1825f7e5acbddf39d72233d28ee4c302c4c (patch)
treec156d4f5343273ae3aef3ad2671904c650e04958 /Makefile
parentd1f78c88faafea7e672c7c45e20f6f040942a92a (diff)
Makefile: build descriptor.o.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4d1efd7..a781fa2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,23 @@
.PHONY: all clean
+CC=gcc
CFLAGS=-std=c99 -O3 -Wall -Wextra -pedantic
-OBJ=upb_parse.o upb_table.o upb_struct.o
+OBJ=upb_parse.o upb_table.o upb_struct.o descriptor.o
all: $(OBJ)
clean:
rm -f $(OBJ) tests
upb_parse.o: upb_parse.c upb_parse.h
- gcc $(CFLAGS) -o upb_parse.o -c upb_parse.c
+ $(CC) $(CFLAGS) -o upb_parse.o -c upb_parse.c
upb_table.o: upb_table.c upb_table.h
- gcc $(CFLAGS) -o upb_table.o -c upb_table.c
+ $(CC) $(CFLAGS) -o upb_table.o -c upb_table.c
upb_struct.o: upb_struct.c upb_struct.h
- gcc $(CFLAGS) -o upb_struct.o -c upb_struct.c
+ $(CC) $(CFLAGS) -o upb_struct.o -c upb_struct.c
+
+descriptor.o: descriptor.c descriptor.h
+ $(CC) $(CFLAGS) -o descriptor.o -c descriptor.c
tests: tests.c upb_parse.c upb_parse.h
- gcc $(CFLAGS) -o tests tests.c
+ $(CC) $(CFLAGS) -o tests tests.c
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback