comparison Makefile @ 467:03a2cd5f151b prerelease

Libpd headers moved to include/, rm useless basic_libpd example, fixed Makefile to actually build default_libpd_render
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 20 Jun 2016 16:57:35 +0100
parents 1d585c5fa663
children 5a936f8e9447
comparison
equal deleted inserted replaced
466:1d585c5fa663 467:03a2cd5f151b
205 # This is a nasty kludge: we want to be able to optionally link in a default 205 # This is a nasty kludge: we want to be able to optionally link in a default
206 # main file if the user hasn't supplied one. We check for the presence of the main() 206 # main file if the user hasn't supplied one. We check for the presence of the main()
207 # function, and conditionally call one of two recursive make targets depending on whether 207 # function, and conditionally call one of two recursive make targets depending on whether
208 # we want to link in the default main file or not. The kludge is the mess of a shell script 208 # we want to link in the default main file or not. The kludge is the mess of a shell script
209 # line below. Surely there's a better way to do this? 209 # line below. Surely there's a better way to do this?
210 $(OUTPUT_FILE): $(CORE_ASM_OBJS) $(CORE_OBJS) $(PROJECT_OBJS) $(STATIC_LIBS) $(DEFAULT_MAIN_OBJS) 210 $(OUTPUT_FILE): $(CORE_ASM_OBJS) $(CORE_OBJS) $(PROJECT_OBJS) $(STATIC_LIBS) $(DEFAULT_MAIN_OBJS) $(DEFAULT_PD_OBJS)
211 $(eval DEFAULT_MAIN_CONDITIONAL :=\ 211 $(eval DEFAULT_MAIN_CONDITIONAL :=\
212 $(shell bash -c '[ `nm $(PROJECT_OBJS) 2>/dev/null | grep -w T | grep -w main | wc -l` == '0' ] && echo "$(DEFAULT_MAIN_OBJS)" || : ')) 212 $(shell bash -c '[ `nm $(PROJECT_OBJS) 2>/dev/null | grep -w T | grep -w main | wc -l` == '0' ] && echo "$(DEFAULT_MAIN_OBJS)" || : '))
213 @#If there is a _main.pd file AND there is no "render" symbol then link in the $(DEFAULT_PD_OBJS) 213 @#If there is a _main.pd file AND there is no "render" symbol then link in the $(DEFAULT_PD_OBJS)
214 $(eval DEFAULT_PD_CONDITIONAL :=\ 214 $(eval DEFAULT_PD_CONDITIONAL :=\
215 $(shell bash -c '{ [ -f "$(PROJECT_DIR)/_main.pd" ] && [ `nm $(PROJECT_OBJS) 2>/dev/null | grep -w T | grep "render.*BelaContext" | wc -l` -eq 0 ]; } && echo '$(DEFAULT_PD_OBJS)' || : ' )) 215 $(shell bash -c '{ [ -f "$(PROJECT_DIR)/_main.pd" ] && [ `nm $(PROJECT_OBJS) 2>/dev/null | grep -w T | grep "render.*BelaContext" | wc -l` -eq 0 ]; } && echo '$(DEFAULT_PD_OBJS)' || : ' ))