diff --git a/src/drivers/srf02/module.mk b/src/drivers/srf02/CMakeLists.txt similarity index 87% rename from src/drivers/srf02/module.mk rename to src/drivers/srf02/CMakeLists.txt index a7bbf0225f..da5b878696 100644 --- a/src/drivers/srf02/module.mk +++ b/src/drivers/srf02/CMakeLists.txt @@ -1,6 +1,6 @@ ############################################################################ # -# Copyright (c) 2013 PX4 Development Team. All rights reserved. +# Copyright (c) 2015 PX4 Development Team. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -30,13 +30,14 @@ # POSSIBILITY OF SUCH DAMAGE. # ############################################################################ - -# -# Makefile to build the Maxbotix Sonar driver. -# - -MODULE_COMMAND = srf02 - -SRCS = srf02.cpp - -MAXOPTIMIZATION = -Os +px4_add_module( + MODULE drivers__srf02 + MAIN srf02 + COMPILE_FLAGS + -Os + SRCS + srf02.cpp + DEPENDS + platforms__common + ) +# vim: set noet ft=cmake fenc=utf-8 ff=unix :