diff Makefile @ 188:90c962b68d7f

Merge pull request #2 from piper-audio/dev/step-and-block-size Pull step & block size out into framing struct, return in config
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 06 Feb 2017 12:04:25 +0000
parents 3eb00e5c76c4
children 70b0f1f9e039
line wrap: on
line diff
--- a/Makefile	Fri Feb 03 13:00:42 2017 +0000
+++ b/Makefile	Mon Feb 06 12:04:25 2017 +0000
@@ -24,9 +24,14 @@
 bin/piper-vamp-simple-server: o/simple-server.o o/json11.o o/piper.capnp.o
 	c++ $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
 
-o/piper.capnp.o:	vamp-capnp/piper.capnp.c++ vamp-capnp/piper.capnp.h
+o/piper.capnp.o:	vamp-capnp/piper.capnp.c++
 	c++ $(CXXFLAGS) $(INCFLAGS) -c $< -o $@
 
+vamp-capnp/piper.capnp.h:	vamp-capnp/piper.capnp.c++
+
+vamp-capnp/piper.capnp.c++: $(PIPER_DIR)/capnp/piper.capnp
+	capnpc --src-prefix=$(PIPER_DIR)/capnp -oc++:vamp-capnp $<
+
 o/json11.o:	ext/json11/json11.cpp
 	c++ $(CXXFLAGS) -c $< -o $@