diff Makefile @ 301:e4392164b458 prerelease

RENAMED BeagleRT to Bela AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, scripts probably not working
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 27 May 2016 14:34:41 +0100
parents e63d35c6ae96
children b26e7c61e3b6
line wrap: on
line diff
--- a/Makefile	Fri May 27 13:58:20 2016 +0100
+++ b/Makefile	Fri May 27 14:34:41 2016 +0100
@@ -1,4 +1,4 @@
-# BeagleRT
+# Bela
 # Low-latency, real-time audio and sensor processing on BeagleBone Black
 # (c) 2016 Andrew McPherson, Victor Zappi, Giulio Moro, Liam Donovan
 # Centre for Digital Music, Queen Mary University of London
@@ -81,7 +81,7 @@
 CPP_OBJS := $(addprefix $(PROJECT_DIR)/build/,$(notdir $(CPP_SRCS:.cpp=.o)))
 CPP_DEPS := $(addprefix $(PROJECT_DIR)/build/,$(notdir $(CPP_SRCS:.cpp=.d)))
 
-# Core BeagleRT sources
+# Core Bela sources
 CORE_CPP_SRCS = $(filter-out core/default_main.cpp, $(wildcard core/*.cpp))
 CORE_OBJS := $(addprefix build/core/,$(notdir $(CORE_CPP_SRCS:.cpp=.o)))
 CORE_CPP_DEPS := $(addprefix build/core/,$(notdir $(CORE_CPP_SRCS:.cpp=.d)))
@@ -92,11 +92,11 @@
 DEFAULT_MAIN_OBJS := ./build/core/default_main.o
 DEFAULT_MAIN_CPP_DEPS := ./build/core/default_main.d
 
-# all = build BeagleRT 
+# all = build Bela 
 all: SYNTAX_FLAG :=
-all: BeagleRT
+all: Bela
 
-# debug = buildBeagleRT debug
+# debug = buildBela debug
 debug: CPP_FLAGS=-g
 debug: C_FLAGS=-g
 debug: all
@@ -105,7 +105,7 @@
 syntax: SYNTAX_FLAG := -fsyntax-only
 syntax: SYNTAX
 
-# Rule for BeagleRT core C++ files
+# Rule for Bela core C++ files
 build/core/%.o: ./core/%.cpp
 	@echo 'Building $(notdir $<)...'
 #	@echo 'Invoking: C++ Compiler'
@@ -142,7 +142,7 @@
 # function, and conditionally call one of two recursive make targets depending on whether
 # we want to link in the default main file or not. The kludge is the mess of a shell script
 # line below. Surely there's a better way to do this?
-BeagleRT: $(CORE_OBJS) $(ASM_OBJS) $(C_OBJS) $(CPP_OBJS) $(STATIC_LIBS) $(DEFAULT_MAIN_OBJS)
+Bela: $(CORE_OBJS) $(ASM_OBJS) $(C_OBJS) $(CPP_OBJS) $(STATIC_LIBS) $(DEFAULT_MAIN_OBJS)
 	$(eval DEFAULT_MAIN_CONDITIONAL := $(shell bash -c 'if [ `nm $(PROJECT_DIR)/build/*.o | grep -w T | grep -w main | wc -l` == '0' ]; then echo "$(DEFAULT_MAIN_OBJS)"; else echo ""; fi'))
 	@echo 'Invoking: C++ linker'
 	@$(CXX) $(SYNTAX_FLAG) -L/usr/xenomai/lib -L/usr/arm-linux-gnueabihf/lib -L/usr/arm-linux-gnueabihf/lib/xenomai -L/usr/lib/arm-linux-gnueabihf -pthread -Wpointer-arith -o "$(PROJECT_DIR)/$(PROJECT)" $(CORE_OBJS) $(DEFAULT_MAIN_CONDITIONAL) $(ASM_OBJS) $(C_OBJS) $(CPP_OBJS) $(STATIC_LIBS) $(LIBS)
@@ -157,13 +157,13 @@
 	-$(RM) $(PROJECT_DIR)/build/* $(PROJECT_DIR)/$(PROJECT)
 	-@echo ' '	
 
-# Remove all the built objects, including the core BeagleRT objects
+# Remove all the built objects, including the core Bela objects
 distclean:
-	-$(RM) build/source/* $(CORE_OBJS) $(CORE_CPP_DEPS) $(DEFAULT_MAIN_OBJS) $(DEFAULT_MAIN_CPP_DEPS) BeagleRT
+	-$(RM) build/source/* $(CORE_OBJS) $(CORE_CPP_DEPS) $(DEFAULT_MAIN_OBJS) $(DEFAULT_MAIN_CPP_DEPS) Bela
 	-@echo ' '
 OUTPUT_FILE="$(PROJECT_DIR)/$(PROJECT)"
 
-$(OUTPUT_FILE): BeagleRT
+$(OUTPUT_FILE): Bela
 run: $(OUTPUT_FILE)
 	@echo "Running $(OUTPUT_FILE)"
 	@$(OUTPUT_FILE)
@@ -171,7 +171,7 @@
 	
 # Remove only the user-generated objects
 #clean:
-#	-$(RM) build/source/* BeagleRT
+#	-$(RM) build/source/* Bela
 #	-@echo ' '
 
 post-build: