Hi everyone, I've been using the following lines in Makefile.rules. I find them very useful as I install libopencm3 projects in different places on different machines. It makes is so that if the variable OPENCM3_DIR is not found at compile time, it suggests how to locate it.
OPENCM3_DIR := $(wildcard $(LIBPATHS:=/locm3.sublime-project)) OPENCM3_DIR := $(firstword $(dir $(OPENCM3_DIR))) # if OPENCM3_DIR variable not set, suggest to user how to find it ifeq ($(strip $(OPENCM3_DIR)),) $(warning Cannot find libopencm3 library in the standard search paths.) $(warning Try find ~ -name libopencm3_stm32f4.a and go up two directories) $(warning e.g. export OPENCM3_DIR=/home/mobb/stm32f4/install/libopencm3) $(warning Under cygwin, you will need to specify OPENCM3_DIR relatively with ../../) $(warning e.g. export OPENCM3_DIR=../../../libopencm3) $(error Please specify it through OPENCM3_DIR variable!) examples/libopencm3) endif endif -- http://diydsp.com/livesite/pages/stm32f4 Sound, Audio and Music Development on the STM32F4 processor ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ libopencm3-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
