Greetings,<br><br>I need some advice for how to modify the Pd Makefile for when I need to compile more than one code file into an external, yet do not wish to create a separate library. Say I have a main file for the external, &quot;tightdsp~.c&quot; another file containing support functions, &quot;
dsphelper1.c&quot; and a third file with even more functions, &quot;dsphelper2.c&quot;. How would I modify the following Makefile so that it would compile the code together, just as if I had copied the contents of the two helper files into the main code file?
<br><br>TIA,<br>Eric<br>===<br><br>NAME=tightdsp~<br>CSYM=tightdsp_tilde<br><br>current: pd_darwin<br><br># ----------------------- Mac OSX -----------------------<br><br>pd_darwin: $(NAME).pd_darwin<br><br>.SUFFIXES: .pd_darwin
<br><br>DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \<br>&nbsp;&nbsp;&nbsp; -Wno-unused -Wno-parentheses -Wno-switch<br><br>.c.pd_darwin:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cc $(DARWINCFLAGS) $(LINUXINCLUDE)&nbsp; -o $*.o -c $*.c<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cc -bundle -undefined suppress&nbsp; -flat_namespace -o $*.pd_darwin $*.o
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm -f $*.o ../$*.pd_darwin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cp $*.pd_darwin $(DEST)<br># ----------------------------------------------------------<br>