From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Wed, 4 Apr 2012 15:44:30 +0200 References: <201204041006.31399.jbe@pengutronix.de> <20120404130345.GR28453@pengutronix.de> In-Reply-To: <20120404130345.GR28453@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201204041544.30293.jbe@pengutronix.de> Subject: Re: [ptxdist] libortp: a Real-time Transport Protocol (RTP, RFC3550) library Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Michael Olbrich Michael Olbrich wrote: > > [...] > > +ifdef PTXCONF_LIBORTP_SRTP > > +LIBORTP_CONF_OPT += --with-srtp=/usr > > +else > > +LIBORTP_CONF_OPT += --with-srtp=none > > +endif > > --with-srtp=$(call ptx/ifdef, PTXCONF_LIBORTP_SRTP,/usr,none) \o/ Now I know the usecase for this kind of macro > [...] > > +ifdef PTXCONF_LIBORTP_TESTS > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/mrtprecv, /usr/bin/mrtprecv) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/mrtpsend, /usr/bin/mrtpsend) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/rtpmemtest, /usr/bin/rtpmemtest) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/rtprecv, /usr/bin/rtprecv) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/rtpsend, /usr/bin/rtpsend) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/rtpsend_stupid, /usr/bin/rtpsend_stupid) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/test_timer, /usr/bin/test_timer) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/tevmrtprecv, /usr/bin/tevmrtprecv) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/tevrtprecv, /usr/bin/tevrtprecv) > > + @$(call install_copy, libortp, 0, 0, 0755, \ > > + $(LIBORTP_DIR)/src/tests/tevrtpsend, /usr/bin/tevrtpsend) > > + > > +endif > > This breaks dev packages. Take a look at connman.make for an example on how > to handle tests like this. ???????? jbe -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de