topic_listener: added missing build deps

The posix build would complain that toipc_listener.cpp did not exist
and there was no rule to create it.

The required rule was added to src/systemcmds/topic_listener/module.mk

The script generate_listener.py is run from the Build tree and needs to
access $(PX4_BASE)/msgs so $(PX4_BASE) is now passed as an argument to
generate_listener.py

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-26 20:02:58 -07:00
parent 3cabfda4c1
commit 8e589adb24
4 changed files with 12 additions and 4 deletions
+3
View File
@@ -35,6 +35,9 @@
# Build the topic listener tool.
#
$(PX4_BASE)/src/systemcmds/topic_listener/topic_listener.cpp : $(PX4_BASE)/Tools/generate_listener.py
$(PX4_BASE)/Tools/generate_listener.py $(PX4_BASE) > $(PX4_BASE)/src/systemcmds/topic_listener/$@
MODULE_COMMAND = listener
SRCS = topic_listener.cpp