Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11821
Added Files: Tag: devel_0_38 makefile.mingw Log Message: hi tim i tried to make tim_0_38 work properly for that windows volctl~ you asked about.. but patching to ix_0_38 , pd.ini won't load: . open: No such file or directory . No such file or directory and toxy is broken and the gui spews errors like this a lot: . Pd: buffer space wasn't sufficient for long GUI string so, you can try. :P it compiles at least..(and http://whats-your.name/pd/ix038.patch works fine with miller_0_39 (CVS HEAD))
--- NEW FILE: makefile.mingw --- VPATH = ../obj:./ INSTDIR = .. OBJ_DIR = $(INSTDIR)/obj BIN_DIR = $(INSTDIR)/bin
PDEXEC = pd.exe GUINAME= pdtcl.dll DLLWRAP= dllwrap
GFLAGS = -DINSTALL_PREFIX="$(INSTDIR)"
MORECFLAGS = -O2 -funroll-loops -march=athlon-xp #-DTHREADED_SF -DGARRAY_THREAD_LOCK -D_GNU_SOURCE
PADIR = $(INSTDIR)/portaudio ASIODIR = ../asio INCPA = -I$(PADIR) -I$(ASIODIR) -I$(PADIR)/pa_common -I$(PADIR)/pablio -I$(PADIR)/pa_asio INCLUDE = GINCLUDE = $(INCLUDE) -I/usr/local/include
LDFLAGS = -L/usr/local/lib -lpthreadGC -lwsock32 -lportaudio -lwinmm -ltcl85 -ltk85 -lole32 LIB = -lm
OPT_CFLAGS =
WARN_CFLAGS = -Wall -W -Wstrict-prototypes -Wno-unused \ -Wno-unused-parameter -Wno-parentheses -Wno-switch ARCH_CFLAGS = -DPD -DPD_INTERNAL -DMSW -DUSEAPI_MMIO -DUSEAPI_PORTAUDIO -DPA19
CFLAGS += $(ARCH_CFLAGS) $(WARN_CFLAGS) $(OPT_CFLAGS) $(MORECFLAGS)
# the sources
PASRC = s_audio_pa.c s_audio_pablio.c s_audio_paring.c s_audio_mmio.c s_midi_mmio.c
ASIOSRC = $(PADIR)/pa_asio/iasiothiscallresolver.cpp \ $(PADIR)/pa_asio/pa_asio.cpp $(ASIODIR)/asio.cpp \ $(ASIODIR)/asiodrivers.cpp $(ASIODIR)/asiolist.cpp
#VSRC = s_audio_vst.c
GSRC = t_main.c t_tkcmd.c
SRC = g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c g_io.c \ g_scalar.c g_traversal.c g_guiconnect.c g_readwrite.c g_editor.c \ g_all_guis.c g_bang.c g_hdial.c g_hslider.c g_mycanvas.c g_numbox.c \ g_toggle.c g_vumeter.c m_pd.c m_class.c m_obj.c m_atom.c m_memory.c \ m_binbuf.c m_conf.c m_glob.c m_sched.c s_main.c s_inter.c s_file.c \ s_print.c s_loader.c s_path.c s_entry.c s_audio.c s_midi.c \ d_ugen.c d_ctl.c d_arithmetic.c d_osc.c d_filter.c d_dac.c d_misc.c \ d_math.c d_fft.c d_mayer_fft.c d_fftroutine.c d_array.c d_global.c \ d_delay.c d_resample.c x_arithmetic.c x_connective.c x_interface.c \ x_midi.c x_misc.c x_time.c x_acoustics.c x_net.c x_qlist.c x_gui.c \ d_soundfile.c g_vslider.c g_vdial.c \ m_simd.c m_simd_sse_gcc.c m_fifo.c
SRSRC = u_pdsend.c u_pdreceive.c
OBJ = $(SRC:.c=.o) GOBJ = $(GSRC:.c=.o) SROBJ = $(SRSRC:.c=.o) PAOBJ = $(PASRC:.c=.o) ASIOBJ = $(ASIOSRC:.cpp=.o) #VOBJ = $(VSRC:.c=.o) OBJC = $(OBJ) $(PAOBJ) $(ASIOBJ)
# # ------------------ targets ------------------------------------ #
.PHONY: all
all: $(OBJ_DIR)/$(GUINAME) $(OBJ_DIR)/$(PDDLL) $(OBJ_DIR)/$(PDEXEC) \ $(OBJ_DIR)/pdsend.exe $(OBJ_DIR)/pdreceive.exe \ $(OBJ_DIR)/vstschedlib.dll $(OBJ_DIR)/pd.tk
$(OBJ) : %.o : %.c $(CC) $(CFLAGS) $(GFLAGS) $(INCLUDE) -c -o $(OBJ_DIR)/$*.o $*.c
$(GOBJ) : %.o : %.c $(CC) $(CFLAGS) $(GFLAGS) $(GINCLUDE) -c -o $(OBJ_DIR)/$*.o $*.c
$(SROBJ) : %.o : %.c $(CC) $(CFLAGS) $(GFLAGS) $(INCLUDE) -c -o $(OBJ_DIR)/$*.o $*.c
$(PAOBJ) : %.o : %.c $(CC) $(CFLAGS) $(GFLAGS) $(INCPA) -c -o $(OBJ_DIR)/$*.o $*.c
$(ASIOBJ) : %.o : %.cpp g++ $(CFLAGS) $(INCPA) -c -o $(OBJ_DIR)/$*.o $*.cpp
$(VOBJ) : %.o : %.c $(CC) $(CFLAGS) $(GFLAGS) $(INCLUDE) -c -o $(OBJ_DIR)/$*.o $*.c
$(OBJ_DIR)/pdsend.exe: u_pdsend.o cd $(OBJ_DIR); $(CC) $(CFLAGS) $(STRIPFLAG) -o pdsend.exe u_pdsend.o $(LDFLAGS)
$(OBJ_DIR)/pdreceive.exe: u_pdreceive.o cd $(OBJ_DIR); $(CC) $(CFLAGS) $(STRIPFLAG) -o pdreceive.exe u_pdreceive.o $(LDFLAGS)
$(OBJ_DIR)/$(PDEXEC): s_entry.o cd $(OBJ_DIR); $(CC) -o $(PDEXEC) s_entry.o $(LIB) pd.a $(LDFLAGS)
$(OBJ_DIR)/$(PDDLL): $(OBJC) cd $(OBJ_DIR); g++ -shared -o pd.dll $(OBJC) $(LDFLAGS) \ -Wl,--export-all-symbols -Wl,--out-implib=pd.a; \ strip --strip-unneeded ../obj/pd.dll $(OBJ_DIR)/$(GUINAME): t_tkcmd.o cd $(OBJ_DIR); $(DLLWRAP) --export-all-symbols --output-def pdtcl.def \ --output-lib=pdtcl.a --dllname=$(GUINAME) t_tkcmd.o $(LDFLAGS)
$(OBJ_DIR)/vstschedlib.dll: $(VOBJ) # cd $(OBJ_DIR); $(DLLWRAP) --export-all-symbols --output-def vst.def \ # --output-lib=vst.a --dllname=vstschedlib.dll s_audio_vst.o pd.a $(LDFLAGS)
$(OBJ_DIR)/pd.tk: u_main.tk echo set pd_nt 1 > $(OBJ_DIR)/pd.tk grep -v "set pd_nt" < u_main.tk >> $(OBJ_DIR)/pd.tk
install: all install -d $(INSTDIR)/bin install $(OBJ_DIR)/*.exe $(BIN_DIR) install $(OBJ_DIR)/*.dll $(BIN_DIR) install -m644 $(OBJ_DIR)/pd.tk $(BIN_DIR)/pd.tk install -m644 ../extra/*/*.pd $(INSTDIR)/doc/5.reference/
clean: -rm -f $(OBJ_DIR)/*.o $(OBJ_DIR)/*.a $(OBJ_DIR)/*.def -rm -f $(OBJ_DIR)/pd*.exe $(OBJ_DIR)/pd*.dll -rm -f $(PADIR)/pablio/*.o $(PADIR)/pa_common/*.o -rm -f $(PADIR)/pa_asio/*.o $(OBJ_DIR)/pd.tk -rm -f makefile.dependencies touch makefile.dependencies chmod 666 makefile.dependencies
distclean: clean rm -rf config.cache config.log config.status makefile tags \ autom4te-*.cache echo all: > makefile echo -e "\t./configure" >> makefile echo -e "\tmake" >> makefile
tags: $(SRC) $(GSRC); ctags *.[ch]
depend: $(CC) $(INCLUDE) $(CFLAGS) -M $(SRC) > makefile.dependencies
uninstall: -rm $(INSTDIR)/bin/pd*.exe -rm $(INSTDIR)/bin/pd*.dll -rm $(INSTDIR)/bin/*.tk
include makefile.dependencies