annotate Makefile @ 444:cdf77b9e66bf prerelease

Removed Makefile verbosity when building .c files
author Giulio Moro <giuliomoro@yahoo.it>
date Sun, 19 Jun 2016 01:18:45 +0100
parents 7a074e238db3
children 566bb80c2d14
rev   line source
giuliomoro@301 1 # Bela
giuliomoro@64 2 # Low-latency, real-time audio and sensor processing on BeagleBone Black
l@260 3 # (c) 2016 Andrew McPherson, Victor Zappi, Giulio Moro, Liam Donovan
giuliomoro@64 4 # Centre for Digital Music, Queen Mary University of London
giuliomoro@64 5
giuliomoro@64 6 # This Makefile is intended for use on the BeagleBone Black itself
giuliomoro@64 7 # and not for cross-compiling
giuliomoro@64 8
giuliomoro@386 9 .DEFAULT_GOAL := Bela
giuliomoro@386 10
giuliomoro@423 11 NO_PROJECT_TARGETS=help coreclean distclean stop nostartup idestart idestop idestartup idenostartup connect ideconnect
giuliomoro@385 12 NO_PROJECT_TARGETS_MESSAGE=PROJECT or EXAMPLE should be set for all targets except: $(NO_PROJECT_TARGETS)
giuliomoro@424 13 # list of targets that automatically activate the QUIET=true flag
giuliomoro@424 14 QUIET_TARGETS=runide
giuliomoro@424 15
giuliomoro@385 16 # Type `$ make help` to get a description of the functionalities of this Makefile.
giuliomoro@385 17 help: ## Show this help
giuliomoro@385 18 @echo 'Usage: make [target] CL=[command line options] [PROJECT=[projectName] | EXAMPLE=[exampleName]]'
giuliomoro@386 19 @printf "\n$(NO_PROJECT_TARGETS_MESSAGE)\n\n"
giuliomoro@386 20 @echo 'Targets: (default: $(.DEFAULT_GOAL))'
giuliomoro@385 21 @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/^\(.*\): .*##\(.*\)/\1:#\2/' | column -t -c 2 -s '#'
l@260 22
giuliomoro@385 23 # PROJECT or EXAMPLE must be set for targets that are not included in NO_PROJECT_TARGETS
giuliomoro@374 24 ifeq (,$(filter $(NO_PROJECT_TARGETS),$(MAKECMDGOALS)))
giuliomoro@374 25 ifndef PROJECT
giuliomoro@374 26 ifndef EXAMPLE
giuliomoro@385 27 $(error $(NO_PROJECT_TARGETS_MESSAGE))
giuliomoro@374 28 endif
giuliomoro@287 29 endif
l@260 30 endif
l@260 31
giuliomoro@374 32 # if we are building an example, just copy it to the projects/ folder
giuliomoro@386 33 # and then treat it as a project
giuliomoro@374 34 ifdef EXAMPLE
giuliomoro@394 35 #you can alternatively specify PROJECT= along with EXAMPLE=
giuliomoro@374 36 PROJECT?=exampleTempProject
giuliomoro@374 37 PROJECT_DIR?=$(abspath projects/$(PROJECT))
andrewm@380 38 $(shell mkdir -p $(abspath projects))
giuliomoro@374 39 $(shell rm -rf $(PROJECT_DIR))
giuliomoro@374 40 $(shell cp -r examples/$(EXAMPLE) $(PROJECT_DIR))
giuliomoro@374 41 else
giuliomoro@287 42 PROJECT_DIR := $(abspath projects/$(PROJECT))
giuliomoro@287 43 endif
giuliomoro@287 44
giuliomoro@374 45 ifdef PROJECT
giuliomoro@393 46 $(shell mkdir -p $(PROJECT_DIR)/build build/core)
giuliomoro@287 47 endif
giuliomoro@374 48
giuliomoro@331 49 OUTPUT_FILE?=$(PROJECT_DIR)/$(PROJECT)
giuliomoro@331 50 COMMAND_LINE_OPTIONS?=$(CL)
giuliomoro@331 51 RUN_COMMAND?=$(OUTPUT_FILE) $(COMMAND_LINE_OPTIONS)
giuliomoro@396 52 RUN_IDE_COMMAND?=stdbuf -i0 -o0 -e0 $(RUN_COMMAND)
giuliomoro@401 53 BELA_STARTUP_SCRIPT?=/root/Bela_startup.sh
giuliomoro@359 54 BELA_AUDIO_THREAD_NAME?=bela-audio
giuliomoro@377 55 SCREEN_NAME?=Bela
giuliomoro@399 56 BELA_IDE_STARTUP_SCRIPT?=/root/Bela_node.sh
giuliomoro@393 57 BELA_IDE_HOME?=/root/Bela/IDE
giuliomoro@400 58 # A bug in this version of screen forces us to use two screen names which beginning substrings do not match (Bela, Bela-IDE would cause problems)
giuliomoro@400 59 BELA_IDE_SCREEN_NAME?=IDE-Bela
giuliomoro@440 60 BELA_IDE_RUN_COMMAND?=cd $(BELA_IDE_HOME) && screen -S $(BELA_IDE_SCREEN_NAME) -d -m bash -c "while true; do /usr/local/bin/node index.js; sleep 0.5; done"
giuliomoro@393 61 BELA_IDE_STOP_COMMAND?=screen -X -S $(BELA_IDE_SCREEN_NAME) quit > /dev/null
giuliomoro@374 62
giuliomoro@424 63 ifneq (,$(filter $(QUIET_TARGETS),$(MAKECMDGOALS)))
giuliomoro@424 64 QUIET=true
giuliomoro@424 65 endif
giuliomoro@424 66 QUIET?=false
giuliomoro@424 67
giuliomoro@64 68 RM := rm -rf
giuliomoro@64 69 STATIC_LIBS := ./libprussdrv.a ./libNE10.a
l@260 70 LIBS := -lrt -lnative -lxenomai -lsndfile
l@260 71
giuliomoro@244 72 # refresh library cache and check if libpd is there
giuliomoro@326 73 #TEST_LIBPD := $(shell ldconfig; ldconfig -p | grep "libpd\.so") # safest but slower way of checking
giuliomoro@326 74 LIBPD_PATH = /usr/lib/libpd.so
giuliomoro@326 75 TEST_LIBPD := $(shell which $(LIBPD_PATH))
giuliomoro@326 76 ifneq ($(strip $(TEST_LIBPD)), )
giuliomoro@244 77 # if libpd is there, link it in
giuliomoro@244 78 LIBS += -lpd -lpthread_rt
giuliomoro@244 79 endif
giuliomoro@64 80
giuliomoro@241 81 CPP_FLAGS := -O3 -march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon -ftree-vectorize
giuliomoro@241 82 C_FLAGS := $(CPP_FLAGS)
giuliomoro@241 83
giuliomoro@241 84 ifndef COMPILER
giuliomoro@241 85 # check whether clang is installed
giuliomoro@385 86 TEST_COMPILER := $(shell which clang)
giuliomoro@302 87 ifneq ($(strip $(TEST_COMPILER)), )
giuliomoro@385 88 #if it is installed, use it
giuliomoro@302 89 COMPILER := clang
giuliomoro@302 90 else
giuliomoro@241 91 COMPILER := gcc
giuliomoro@302 92 endif
giuliomoro@241 93 endif
giuliomoro@241 94
giuliomoro@241 95 ifeq ($(COMPILER), clang)
giuliomoro@306 96 CC=clang
giuliomoro@306 97 CXX=clang++
giuliomoro@302 98 CPP_FLAGS += -DNDEBUG
giuliomoro@302 99 C_FLAGS += -DNDEBUG
giuliomoro@241 100 else
giuliomoro@241 101 CC=gcc
giuliomoro@241 102 CXX=g++
giuliomoro@241 103 CPP_FLAGS += --fast-math
giuliomoro@241 104 C_FLAGS += --fast-math
giuliomoro@241 105 endif
giuliomoro@241 106
l@260 107 INCLUDES := -I$(PROJECT_DIR) -I./include -I/usr/include/ne10 -I/usr/xenomai/include -I/usr/arm-linux-gnueabihf/include/xenomai/include -I/usr/arm-linux-gnueabihf/include/ne10
andrewm@68 108
l@260 109 ASM_SRCS := $(wildcard $(PROJECT_DIR)/*.S)
l@260 110 ASM_OBJS := $(addprefix $(PROJECT_DIR)/build/,$(notdir $(ASM_SRCS:.S=.o)))
l@260 111 ASM_DEPS := $(addprefix $(PROJECT_DIR)/build/,$(notdir $(ASM_SRCS:.S=.d)))
giuliomoro@64 112
l@260 113 C_SRCS := $(wildcard $(PROJECT_DIR)/*.c)
l@260 114 C_OBJS := $(addprefix $(PROJECT_DIR)/build/,$(notdir $(C_SRCS:.c=.o)))
l@260 115 C_DEPS := $(addprefix $(PROJECT_DIR)/build/,$(notdir $(C_SRCS:.c=.d)))
giuliomoro@64 116
l@260 117 CPP_SRCS := $(wildcard $(PROJECT_DIR)/*.cpp)
l@260 118 CPP_OBJS := $(addprefix $(PROJECT_DIR)/build/,$(notdir $(CPP_SRCS:.cpp=.o)))
l@260 119 CPP_DEPS := $(addprefix $(PROJECT_DIR)/build/,$(notdir $(CPP_SRCS:.cpp=.d)))
giuliomoro@64 120
giuliomoro@383 121 PROJECT_OBJS = $(ASM_OBJS) $(C_OBJS) $(CPP_OBJS)
giuliomoro@383 122
giuliomoro@301 123 # Core Bela sources
giuliomoro@186 124 CORE_CPP_SRCS = $(filter-out core/default_main.cpp, $(wildcard core/*.cpp))
giuliomoro@186 125 CORE_OBJS := $(addprefix build/core/,$(notdir $(CORE_CPP_SRCS:.cpp=.o)))
giuliomoro@186 126 CORE_CPP_DEPS := $(addprefix build/core/,$(notdir $(CORE_CPP_SRCS:.cpp=.d)))
giuliomoro@64 127
andrewm@318 128 CORE_ASM_SRCS := $(wildcard core/*.S)
andrewm@318 129 CORE_ASM_OBJS := $(addprefix build/core/,$(notdir $(CORE_ASM_SRCS:.S=.o)))
andrewm@318 130 CORE_ASM_DEPS := $(addprefix build/core/,$(notdir $(CORE_ASM_SRCS:.S=.d)))
andrewm@318 131
andrewm@318 132
giuliomoro@64 133 # Objects for a system-supplied default main() file, if the user
giuliomoro@64 134 # only wants to provide the render functions.
giuliomoro@64 135 DEFAULT_MAIN_CPP_SRCS := ./core/default_main.cpp
giuliomoro@64 136 DEFAULT_MAIN_OBJS := ./build/core/default_main.o
giuliomoro@64 137 DEFAULT_MAIN_CPP_DEPS := ./build/core/default_main.d
andrewm@68 138
giuliomoro@334 139 Bela: ## Builds the Bela program with all the opimizations
giuliomoro@334 140 Bela: $(OUTPUT_FILE)
giuliomoro@334 141
giuliomoro@301 142 # all = build Bela
giuliomoro@334 143 all: ## Same as Bela
andrewm@69 144 all: SYNTAX_FLAG :=
giuliomoro@301 145 all: Bela
andrewm@68 146
giuliomoro@301 147 # debug = buildBela debug
giuliomoro@334 148 debug: ## Same as Bela but with debug flags and no optimizations
giuliomoro@209 149 debug: CPP_FLAGS=-g
giuliomoro@209 150 debug: C_FLAGS=-g
giuliomoro@209 151 debug: all
giuliomoro@209 152
andrewm@69 153 # syntax = check syntax
giuliomoro@334 154 syntax: ## Only checks syntax
andrewm@69 155 syntax: SYNTAX_FLAG := -fsyntax-only
l@260 156 syntax: SYNTAX
andrewm@69 157
giuliomoro@301 158 # Rule for Bela core C++ files
giuliomoro@64 159 build/core/%.o: ./core/%.cpp
l@260 160 @echo 'Building $(notdir $<)...'
giuliomoro@386 161 # @echo 'Invoking: C++ Compiler $(CXX)'
l@260 162 @$(CXX) $(SYNTAX_FLAG) $(INCLUDES) $(CPP_FLAGS) -Wall -c -fmessage-length=0 -U_FORTIFY_SOURCE -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
l@260 163 @echo ' ...done'
giuliomoro@64 164 @echo ' '
andrewm@68 165
andrewm@318 166 # Rule for Bela core ASM files
andrewm@318 167 build/core/%.o: ./core/%.S
andrewm@318 168 @echo 'Building $(notdir $<)...'
andrewm@318 169 # @echo 'Invoking: GCC Assembler'
andrewm@318 170 @as -o "$@" "$<"
andrewm@318 171 @echo ' ...done'
andrewm@318 172 @echo ' '
andrewm@318 173
giuliomoro@64 174 # Rule for user-supplied C++ files
l@260 175 $(PROJECT_DIR)/build/%.o: $(PROJECT_DIR)/%.cpp
l@260 176 @echo 'Building $(notdir $<)...'
l@389 177 # @echo 'Invoking: C++ Compiler $(CXX)'
l@260 178 @$(CXX) $(SYNTAX_FLAG) $(INCLUDES) $(CPP_FLAGS) -Wall -c -fmessage-length=0 -U_FORTIFY_SOURCE -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
l@260 179 @echo ' ...done'
giuliomoro@64 180 @echo ' '
andrewm@68 181
giuliomoro@64 182 # Rule for user-supplied C files
l@260 183 $(PROJECT_DIR)/build/%.o: $(PROJECT_DIR)/%.c
l@260 184 @echo 'Building $(notdir $<)...'
giuliomoro@386 185 # @echo 'Invoking: C Compiler $(CC)'
giuliomoro@444 186 @$(CC) $(SYNTAX_FLAG) $(INCLUDES) $(C_FLAGS) -Wall -c -fmessage-length=0 -U_FORTIFY_SOURCE -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<" -std=c99
l@260 187 @echo ' ...done'
giuliomoro@64 188 @echo ' '
andrewm@68 189
giuliomoro@64 190 # Rule for user-supplied assembly files
l@260 191 $(PROJECT_DIR)/build/%.o: $(PROJECT_DIR)/%.S
l@260 192 @echo 'Building $(notdir $<)...'
l@260 193 # @echo 'Invoking: GCC Assembler'
l@260 194 @as -o "$@" "$<"
l@260 195 @echo ' ...done'
giuliomoro@64 196 @echo ' '
giuliomoro@64 197
giuliomoro@64 198 # This is a nasty kludge: we want to be able to optionally link in a default
giuliomoro@64 199 # main file if the user hasn't supplied one. We check for the presence of the main()
giuliomoro@64 200 # function, and conditionally call one of two recursive make targets depending on whether
giuliomoro@64 201 # we want to link in the default main file or not. The kludge is the mess of a shell script
giuliomoro@64 202 # line below. Surely there's a better way to do this?
giuliomoro@383 203 $(OUTPUT_FILE): $(CORE_ASM_OBJS) $(CORE_OBJS) $(PROJECT_OBJS) $(STATIC_LIBS) $(DEFAULT_MAIN_OBJS)
giuliomoro@383 204 $(eval DEFAULT_MAIN_CONDITIONAL := $(shell bash -c 'if [ `nm $(PROJECT_OBJS) | grep -w T | grep -w main | wc -l` == '0' ]; then echo "$(DEFAULT_MAIN_OBJS)"; else echo ""; fi'))
l@387 205 @echo 'Linking...'
andrewm@318 206 @$(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_ASM_OBJS) $(CORE_OBJS) $(DEFAULT_MAIN_CONDITIONAL) $(ASM_OBJS) $(C_OBJS) $(CPP_OBJS) $(STATIC_LIBS) $(LIBS)
l@387 207 @echo ' ...done'
l@387 208
l@260 209 # Other Targets:
l@260 210 # This rule compiles c and c++ source files without output or linking
l@260 211 SYNTAX: $(C_OBJS) $(CPP_OBJS)
giuliomoro@64 212
giuliomoro@417 213 projectclean:## Remove the PROJECT's build objects & binary
giuliomoro@326 214 -$(RM) $(PROJECT_DIR)/build/* $(OUTPUT_FILE)
giuliomoro@64 215 -@echo ' '
giuliomoro@64 216
giuliomoro@386 217 clean: ## Same as projectclean
giuliomoro@386 218 clean: projectclean
giuliomoro@386 219
giuliomoro@386 220 coreclean: ## Remove the core's build objects
giuliomoro@394 221 -$(RM) build/core/*
giuliomoro@386 222
giuliomoro@386 223 prompt:
giuliomoro@386 224 @printf "Warning: you are about to DELETE the projects/ folder and its content. This operation cannot be undone. Continue? (y/N) "
giuliomoro@386 225 @read REPLY; if [ $$REPLY != y ] && [ $$REPLY != Y ]; then echo "Aborting..."; exit 1; fi
giuliomoro@386 226
giuliomoro@386 227 distclean: ## Restores the Bela folder to a pristine state: remove all the projects source and the built objects, including the core Bela objects.
giuliomoro@386 228 distclean: prompt distcleannoprompt
giuliomoro@386 229
giuliomoro@386 230 distcleannoprompt: ## Same as distclean, but does not prompt for confirmation. Use with care.
giuliomoro@326 231 -$(RM) build/source/* $(CORE_OBJS) $(CORE_CPP_DEPS) $(DEFAULT_MAIN_OBJS) $(DEFAULT_MAIN_CPP_DEPS) $(OUTPUT_FILE)
giuliomoro@64 232 -@echo ' '
giuliomoro@64 233
giuliomoro@302 234 runfg: run
giuliomoro@334 235 run: ## Run PROJECT in the foreground
giuliomoro@326 236 run: stop Bela
giuliomoro@327 237 @echo "Running $(RUN_COMMAND)"
giuliomoro@404 238 @sync& cd $(PROJECT_DIR) && $(RUN_COMMAND)
giuliomoro@424 239 runide: ## Run PROJECT for IDE (foreground, no buffering)
giuliomoro@424 240 runide: stop Bela
giuliomoro@404 241 @sync& cd $(PROJECT_DIR) && $(RUN_IDE_COMMAND)
giuliomoro@334 242 runscreen: ## Run PROJECT in the background (detached screen)
giuliomoro@302 243 runscreen: stop $(OUTPUT_FILE)
giuliomoro@327 244 @echo "Running $(RUN_COMMAND) in a screen"
giuliomoro@327 245 @cd $(PROJECT_DIR) && screen -S $(SCREEN_NAME) -d -m $(RUN_COMMAND)
giuliomoro@334 246 runscreenfg: ## Run PROJECT in a screen in the foreground (can detach with ctrl-a ctrl-d)
giuliomoro@313 247 runscreenfg: stop $(OUTPUT_FILE)
giuliomoro@327 248 @echo "Running $(RUN_COMMAND) in a screen"
giuliomoro@327 249 @cd $(PROJECT_DIR) && screen -S $(SCREEN_NAME) -m $(RUN_COMMAND)
giuliomoro@313 250 FIFO_NAME=/tmp/belafifo
giuliomoro@334 251 runscreenfifo: ## Same as runscreen, but stdout and stderr are piped to the foreground through a fifo
giuliomoro@313 252 runscreenfifo: stop $(OUTPUT_FILE)
giuliomoro@313 253 @echo "Running $(RUN_COMMAND), piping output to $(FIFO_NAME)"
giuliomoro@313 254 @rm -rf $(FIFO_NAME)
giuliomoro@313 255 @mkfifo $(FIFO_NAME)
giuliomoro@327 256 @cd $(PROJECT_DIR)
giuliomoro@315 257 @screen -S $(SCREEN_NAME) -d -m stdbuf -e 0 -i 0 -o 0 bash -c "$(RUN_COMMAND) &> $(FIFO_NAME)"
giuliomoro@315 258 @cat /tmp/belafifo
giuliomoro@302 259
giuliomoro@331 260 STARTUP_COMMAND=printf "\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running Bela...\nscreen -S $(SCREEN_NAME) -d -m %s $(RUN_COMMAND) %s\n"
giuliomoro@334 261 nostartup: ## No Bela project runs at startup
giuliomoro@331 262 nostartup:
andrewm@391 263 @echo "Disabling Bela at startup..."
giuliomoro@344 264 @printf "#!/bin/sh\n#\n\n# This file is autogenerated by Bela. Do not edit!\n\n# Run on startup disabled -- nothing to do here\n" > $(BELA_STARTUP_SCRIPT)
giuliomoro@331 265
giuliomoro@334 266 startuploop: ## Makes PROJECT run at startup and restarts it if it crashes
giuliomoro@331 267 startuploop: Bela
giuliomoro@331 268 @echo "Enabling Bela at startup in a loop..."
giuliomoro@331 269 @$(STARTUP_COMMAND) 'bash -c "while sleep 0.5 ; do echo Running Bela...;' '; done"' > $(BELA_STARTUP_SCRIPT)
giuliomoro@331 270
giuliomoro@334 271 startup: ## Makes PROJECT run at startup
giuliomoro@331 272 startup: Bela
giuliomoro@331 273 @echo "Enabling Bela at startup..."
giuliomoro@331 274 @$(STARTUP_COMMAND) > $(BELA_STARTUP_SCRIPT)
giuliomoro@426 275 @chmod +x $(BELA_STARTUP_SCRIPT)
giuliomoro@334 276 stop: ## Stops any Bela program that is currently running
giuliomoro@302 277 stop:
giuliomoro@424 278 @PID=`grep $(BELA_AUDIO_THREAD_NAME) /proc/xenomai/stat | cut -d " " -f 5 | sed s/\s//g`; if [ -z $$PID ]; then [ $(QUIET) = true ] || echo "No process to kill"; else [ $(QUIET) = true ] || echo "Killing old Bela process $$PID"; kill -2 $$PID; fi; screen -X -S $(SCREEN_NAME) quit > /dev/null; exit 0;
giuliomoro@64 279
giuliomoro@417 280 connect: ## Connects to the running Bela program (if any), can detach with ctrl-a ctrl-d.
giuliomoro@417 281 @screen -r -S $(SCREEN_NAME)
giuliomoro@417 282
giuliomoro@409 283 idestart: ## Starts the on-board IDE
giuliomoro@410 284 idestart: idestop
giuliomoro@410 285 @printf "Starting IDE..."
giuliomoro@410 286 @$(BELA_IDE_RUN_COMMAND)
giuliomoro@410 287 @printf "done\n"
giuliomoro@393 288
giuliomoro@393 289 idestop: ## Stops the on-board IDE
giuliomoro@410 290 @printf "Stopping currently running IDE..."
giuliomoro@410 291 @screen -X -S $(BELA_IDE_SCREEN_NAME) quit > /dev/null; exit 0;
giuliomoro@410 292 @printf "done\n"
giuliomoro@393 293
giuliomoro@440 294 BELA_IDE_STARTUP_COMMAND=printf '\#!/bin/sh\n\#\n\# This file is autogenerated by Bela. Do not edit!\n\necho Running the Bela IDE...\n$(BELA_IDE_RUN_COMMAND)\n' > $(BELA_IDE_STARTUP_SCRIPT)
giuliomoro@393 295
giuliomoro@399 296 idestartup: ## Enables the IDE at startup
giuliomoro@393 297 @echo "Enabling the IDE at startup"
giuliomoro@414 298 @$(BELA_IDE_STARTUP_COMMAND)
giuliomoro@393 299 @chmod +x $(BELA_IDE_STARTUP_SCRIPT)
giuliomoro@393 300
giuliomoro@393 301 idenostartup: ## Disables the IDE at startup
giuliomoro@393 302 @echo "Disabling the IDE at startup"
giuliomoro@393 303 @printf "#!/bin/sh\n#\n\n# This file is autogenerated by Bela. Do not edit!\n\n# The Bela IDE is disabled on startup.\n" > $(BELA_IDE_STARTUP_SCRIPT)
giuliomoro@417 304
giuliomoro@417 305 ideconnect: ## Brings in the foreground the IDE that currently is running in a screen (if any), can detach with ctrl-a ctrl-d.
giuliomoro@417 306 @screen -r -S $(BELA_IDE_SCREEN_NAME)
giuliomoro@417 307
giuliomoro@417 308 .PHONY: all clean distclean help projectclean nostartup startup startuploop debug run runfg runscreen runscreenfg runscreenfifo stop idestart idestop idestartup idenostartup ideconnect connect