comparison Makefile @ 449:5e79364c9b1d prerelease

Remove old SYNTAX target in Makefile, which was causing the syntax check to behave wrong occasioinally. Also fixed update_board.
author Liam Donovan <l.b.donovan@qmul.ac.uk>
date Sun, 19 Jun 2016 21:52:07 +0100
parents fdb30affab1c
children 0567af952cfa
comparison
equal deleted inserted replaced
448:fdb30affab1c 449:5e79364c9b1d
152 debug: all 152 debug: all
153 153
154 # syntax = check syntax 154 # syntax = check syntax
155 syntax: ## Only checks syntax 155 syntax: ## Only checks syntax
156 syntax: SYNTAX_FLAG := -fsyntax-only 156 syntax: SYNTAX_FLAG := -fsyntax-only
157 syntax: SYNTAX 157 syntax: Bela
158 158
159 # Rule for Bela core C++ files 159 # Rule for Bela core C++ files
160 build/core/%.o: ./core/%.cpp 160 build/core/%.o: ./core/%.cpp
161 @echo 'Building $(notdir $<)...' 161 @echo 'Building $(notdir $<)...'
162 # @echo 'Invoking: C++ Compiler $(CXX)' 162 # @echo 'Invoking: C++ Compiler $(CXX)'
206 @echo 'Linking...' 206 @echo 'Linking...'
207 @$(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) 207 @$(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)
208 @echo ' ...done' 208 @echo ' ...done'
209 209
210 # Other Targets: 210 # Other Targets:
211 # This rule compiles c and c++ source files without output or linking
212 SYNTAX: $(C_OBJS) $(CPP_OBJS)
213
214 projectclean:## Remove the PROJECT's build objects & binary 211 projectclean:## Remove the PROJECT's build objects & binary
215 -$(RM) $(PROJECT_DIR)/build/* $(OUTPUT_FILE) 212 -$(RM) $(PROJECT_DIR)/build/* $(OUTPUT_FILE)
216 -@echo ' ' 213 -@echo ' '
217 214
218 clean: ## Same as projectclean 215 clean: ## Same as projectclean