Mercurial > hg > beaglert
diff 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 |
line wrap: on
line diff
--- a/Makefile Mon Jun 20 16:09:00 2016 +0100 +++ b/Makefile Mon Jun 20 16:57:35 2016 +0100 @@ -207,7 +207,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? -$(OUTPUT_FILE): $(CORE_ASM_OBJS) $(CORE_OBJS) $(PROJECT_OBJS) $(STATIC_LIBS) $(DEFAULT_MAIN_OBJS) +$(OUTPUT_FILE): $(CORE_ASM_OBJS) $(CORE_OBJS) $(PROJECT_OBJS) $(STATIC_LIBS) $(DEFAULT_MAIN_OBJS) $(DEFAULT_PD_OBJS) $(eval DEFAULT_MAIN_CONDITIONAL :=\ $(shell bash -c '[ `nm $(PROJECT_OBJS) 2>/dev/null | grep -w T | grep -w main | wc -l` == '0' ] && echo "$(DEFAULT_MAIN_OBJS)" || : ')) @#If there is a _main.pd file AND there is no "render" symbol then link in the $(DEFAULT_PD_OBJS)