comparison Makefile @ 274:cf98c06c72fd prerelease

merge
author Liam Donovan <l.b.donovan@qmul.ac.uk>
date Tue, 17 May 2016 16:42:02 +0100
parents 247a182adb6d
children 4815ed0f21de 4475c0bc2aaa
comparison
equal deleted inserted replaced
273:0ee6eebb567a 274:cf98c06c72fd
7 # and not for cross-compiling 7 # and not for cross-compiling
8 8
9 # set the project to be compiled by calling: make all PROJECT=<project_name> 9 # set the project to be compiled by calling: make all PROJECT=<project_name>
10 10
11 # if the PROJECT variable is not set, throw an error and exit 11 # if the PROJECT variable is not set, throw an error and exit
12 # otherwise, calling make clean without setting PROJECT results in entire projects directory being rm -rf'ed 12 # otherwise, we could have unexpected data loss when calling clean without it
13 ifndef PROJECT 13 ifndef PROJECT
14 $(error PROJECT is not set) 14 $(error PROJECT is not set)
15 endif 15 endif
16 16
17 PROJECT_DIR := $(abspath projects/$(PROJECT)) 17 PROJECT_DIR := $(abspath projects/$(PROJECT))
18 18 $(shell mkdir -p $(PROJECT_DIR)/build)
19 RM := rm -rf 19 RM := rm -rf
20 STATIC_LIBS := ./libprussdrv.a ./libNE10.a 20 STATIC_LIBS := ./libprussdrv.a ./libNE10.a
21 LIBS := -lrt -lnative -lxenomai -lsndfile 21 LIBS := -lrt -lnative -lxenomai -lsndfile
22 22
23 # refresh library cache and check if libpd is there 23 # refresh library cache and check if libpd is there