Maybe this is something for pd-lib-builder? https://github.com/pure-data/pd-lib-builder https://github.com/pure-data/pd-lib-builder
On May 12, 2017, at 6:38 AM, pd-list-request@lists.iem.at wrote:
From: David Medine <dmedine@ucsd.edu mailto:dmedine@ucsd.edu> Subject: [PD] how to build multiple objects from one file Date: May 12, 2017 at 6:37:25 AM MDT To: pd-list@lists.iem.at mailto:pd-list@lists.iem.at
I am building a small suite of related externals and it would be most convenient to simply compile one .obj file and pull the externs off of it one at a time. My makefile is the standard Pd makefile, but I leave the CSYM and current fields empty so I can declare them with my call to make:
make CSYM=lsl_inlet current=pd_nt
It builds just fine, but when I open the help patch, the extern doesn't load. If, I rename the file and arrange things so that the filename is the same as the extern name (i.e. there is only one extern per .obj) and recompile it works just fine. The important point is that I don't change the code or the body of the makefile at all (except for the NAME field).
I know that Miller does this it this way all the time, e.g. d_arithmetic.c. Any suggestions?
Below is my makefile, in case that helps.
Cheers,
David
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/