summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2018-08-21 15:01:07 -0700
committerJosh Haberman <jhaberman@gmail.com>2018-08-21 15:01:07 -0700
commit6155ed8b499c10bdd1f38bcb25866218bc388b7c (patch)
treea03b7fbaf122909d9aeab5b1769b661fc3cbbbc6 /Makefile
parent1a484d353bc6b48df07473e13de3da27072beaa0 (diff)
Re-add amalgamation rules and remove google protobuf from Travis.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1bf5a39..f78c950 100644
--- a/Makefile
+++ b/Makefile
@@ -437,3 +437,17 @@ upb/bindings/lua/upb/table_c.so: upb/bindings/lua/upb/table.c lib/libupb_pic.a
upb/bindings/lua/upb/pb_c.so: upb/bindings/lua/upb/pb.c $(LUA_LIB_DEPS)
$(E) CC upb/bindings/lua/upb/pb.c
$(Q) $(CC) $(OPT) $(CSTD) $(WARNFLAGS) $(CPPFLAGS) $(CFLAGS) -fpic -shared -o $@ $^ $(LUA_LDFLAGS)
+
+# Amalgamated source (upb.c/upb.h) ############################################
+
+AMALGAMATE_SRCS=$(upb_SRCS) $(upb_descriptor_SRCS) $(upb_pb_SRCS) $(upb_json_SRCS)
+
+amalgamate: upb.c upb.h
+
+upb.c upb.h: $(AMALGAMATE_SRCS)
+ $(E) AMALGAMATE $@
+ $(Q) ./tools/amalgamate.py "" "" $^
+
+amalgamated: upb.c upb.h
+ $(E) CC upb.c
+ $(Q) $(CC) -o upb.o -c upb.c $(WARNFLAGS)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback