Update of /cvsroot/pure-data/externals/corelibs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7603/corelibs
Added Files: Makefile generate.sh lib_d_arithmetic.c lib_d_array.c lib_d_ctl.c lib_d_dac.c lib_d_delay.c lib_d_fft.c lib_d_filter.c lib_d_global.c lib_d_math.c lib_d_misc.c lib_d_osc.c lib_d_soundfile.c lib_d_ugen.c lib_x_acoustics.c lib_x_arithmetic.c lib_x_connective.c lib_x_gui.c lib_x_interface.c lib_x_list.c lib_x_midi.c lib_x_misc.c lib_x_net.c lib_x_qlist.c lib_x_time.c Log Message: wrote script to generate files to build internal Pd objects as separate libs; next, I'll write a patch which removes these from being compiled into the core, so then we'll really have 'pure pd'
--- NEW FILE: lib_x_gui.c --- #include "../../pd/src/x_gui.c" void lib_x_gui_setup(void) { x_gui_setup(); }
--- NEW FILE: lib_d_arithmetic.c --- #include "../../pd/src/d_arithmetic.c" void lib_d_arithmetic_setup(void) { d_arithmetic_setup(); }
--- NEW FILE: lib_d_delay.c --- #include "../../pd/src/d_delay.c" void lib_d_delay_setup(void) { d_delay_setup(); }
--- NEW FILE: Makefile --- TARGET := $(shell pwd | sed 's|.*/(.*)$$|\1|') EXTERNALS_ROOT := $(shell pwd | sed 's|^(/.*externals).*|\1|')
default: make -C $(EXTERNALS_ROOT) $(TARGET)
install: make -C $(EXTERNALS_ROOT) $(TARGET)_install
clean: make -C $(EXTERNALS_ROOT) $(TARGET)_clean
test_locations: make -C $(EXTERNALS_ROOT) test_locations
--- NEW FILE: lib_d_osc.c --- #include "../../pd/src/d_osc.c" void lib_d_osc_setup(void) { d_osc_setup(); }
--- NEW FILE: lib_x_midi.c --- #include "../../pd/src/x_midi.c" void lib_x_midi_setup(void) { x_midi_setup(); }
--- NEW FILE: lib_d_global.c --- #include "../../pd/src/d_global.c" void lib_d_global_setup(void) { d_global_setup(); }
--- NEW FILE: lib_x_net.c --- #include "../../pd/src/x_net.c" void lib_x_net_setup(void) { x_net_setup(); }
--- NEW FILE: lib_d_misc.c --- #include "../../pd/src/d_misc.c" void lib_d_misc_setup(void) { d_misc_setup(); }
--- NEW FILE: lib_d_soundfile.c --- #include "../../pd/src/d_soundfile.c" void lib_d_soundfile_setup(void) { d_soundfile_setup(); }
--- NEW FILE: lib_d_fft.c --- #include "../../pd/src/d_fftroutine.c" #include "../../pd/src/d_mayer_fft.c" #include "../../pd/src/d_fft.c" void lib_d_fft_setup(void) { d_fft_setup(); }
--- NEW FILE: lib_d_filter.c --- #include "../../pd/src/d_filter.c" void lib_d_filter_setup(void) { d_filter_setup(); }
--- NEW FILE: lib_d_ctl.c --- #include "../../pd/src/d_ctl.c" void lib_d_ctl_setup(void) { d_ctl_setup(); }
--- NEW FILE: lib_x_time.c --- #include "../../pd/src/x_time.c" void lib_x_time_setup(void) { x_time_setup(); }
--- NEW FILE: lib_x_list.c --- #include "../../pd/src/x_list.c" void lib_x_list_setup(void) { x_list_setup(); }
--- NEW FILE: lib_x_arithmetic.c --- #include "../../pd/src/x_arithmetic.c" void lib_x_arithmetic_setup(void) { x_arithmetic_setup(); }
--- NEW FILE: lib_x_interface.c --- #include "../../pd/src/x_interface.c" void lib_x_interface_setup(void) { x_interface_setup(); }
--- NEW FILE: lib_x_qlist.c --- #include "../../pd/src/x_qlist.c" void lib_x_qlist_setup(void) { x_qlist_setup(); }
--- NEW FILE: generate.sh --- #!/bin/sh
# put these at the top of the file touch lib_d_fft.c echo '#include "../../pd/src/d_fftroutine.c"' >> lib_d_fft.c echo '#include "../../pd/src/d_mayer_fft.c"' >> lib_d_fft.c
for file in ../../pd/src/[dx]_*.c; do newfile=`echo $file | sed 's|.*/src/([dx]_)|lib_\1|'` touch $newfile echo -n '#include "' >> $newfile echo -n $file >> $newfile echo '"' >> $newfile echo "void "`echo $newfile|sed 's|(.*).c|\1|'`"_setup(void)" >> $newfile echo "{" >> $newfile echo $file | sed 's|.*src/(.*).c| \1_setup();|' >> $newfile echo "}" >> $newfile done
# these files hold code for other classes, but no classes rm lib_d_fftroutine.c lib_d_mayer_fft.c lib_d_resample.c
--- NEW FILE: lib_x_acoustics.c --- #include "../../pd/src/x_acoustics.c" void lib_x_acoustics_setup(void) { x_acoustics_setup(); }
--- NEW FILE: lib_x_misc.c --- #include "../../pd/src/x_misc.c" void lib_x_misc_setup(void) { x_misc_setup(); }
--- NEW FILE: lib_d_ugen.c --- #include "../../pd/src/d_ugen.c" void lib_d_ugen_setup(void) { d_ugen_setup(); }
--- NEW FILE: lib_x_connective.c --- #include "../../pd/src/x_connective.c" void lib_x_connective_setup(void) { x_connective_setup(); }
--- NEW FILE: lib_d_math.c --- #include "../../pd/src/d_math.c" void lib_d_math_setup(void) { d_math_setup(); }
--- NEW FILE: lib_d_array.c --- #include "../../pd/src/d_array.c" void lib_d_array_setup(void) { d_array_setup(); }
--- NEW FILE: lib_d_dac.c --- #include "../../pd/src/d_dac.c" void lib_d_dac_setup(void) { d_dac_setup(); }