#---------------------------------------------- # user makefile to use with Arduino.mk # # lustre + freertos (felipeu) #---------------------------------------------- # Name of the final binary TARGET=control # usr sources: # - bundle of c/cpp files # can be anywhere # - warning: extensions must be .c or .cc/.cpp (c++) USR_SRCS= \ ./objs/uturn.cpp \ ./objs/liner.cpp \ code/BatCar.cpp \ code/FreeRTOS_Utils.cpp \ control_loop.cpp # Thinks that can be customized USR_CPP_FLAGS= USR_CC_FLAGS= USR_INCLS=-I./objs -I./ardutils # target can be: # compile # upload # clean all: checkmake compile # lustre to C is called within objs, cause it generates # a lot of intermediate files LUS_FLAGS=-ctx-static -extmacro -exttypes ./objs/%.cpp: control.lus cd ./objs; lus2c ../control.lus $* $(LUS_FLAGS); mv $*.c $*.cpp cp $*_ext.h ./objs # Generic makefile RTOS_TICK=15MS ARDUINO_BOARD=SBC include utils/AddOnFreeRTOS.mk include utils/Arduino.mk # Cleanup all whenever Makefile change checkmake: $(OBJDIR)/_mkuptodate $(OBJDIR)/_mkuptodate: Makefile make clean make $(OBJDIR) touch $@