[PD-cvs] externals/ann/src makefile.darwin,1.1,1.2
dmorelli
morellid at users.sourceforge.net
Wed Jun 1 18:27:09 CEST 2005
- Previous message: [PD-cvs] externals/nusmuk/msd2D help-msd2D.pd,1.9,1.10
- Next message: [PD-cvs] externals/iemlib/src/iemlib1 biquad_freq_resp.c, 1.2, 1.3 db2v.c, 1.1.1.1, 1.2 f2note.c, 1.1.1.1, 1.2 forpp.c, 1.1.1.1, 1.2 gate.c, 1.1.1.1, 1.2 iemlib.h, 1.2, 1.3 iemlib1.c, 1.1.1.1, 1.2 sigFIR.c, 1.1.1.1, 1.2 sigfilter.c, 1.2, 1.3 sighml_shelf.c, 1.2, 1.3 sigiem_cot4.c, 1.1.1.1, 1.2 sigiem_delay.c, 1.1.1.1, 1.2 sigiem_pow4.c, 1.1.1.1, 1.2 sigiem_sqrt4.c, 1.1.1.1, 1.2 siglp1_t.c, 1.2, 1.3 sigmov_avrg_kern.c, 1.1.1.1, 1.2 sigpara_bp2.c, 1.2, 1.3 sigpeakenv.c, 1.2, 1.3 sigprvu.c, 1.2, 1.3 sigpvu.c, 1.2, 1.3 sigrvu.c, 1.2, 1.3 sigsin_phase.c, 1.1.1.1, 1.2 sigvcf_filter.c, 1.2, 1.3 soundfile_info.c, 1.1.1.1, 1.2 split.c, 1.2, 1.3 v2db.c, 1.1.1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pure-data/externals/ann/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28502
Modified Files:
makefile.darwin
Log Message:
now links fann correctly. todo: use libfann.a instead of *.o
Index: makefile.darwin
===================================================================
RCS file: /cvsroot/pure-data/externals/ann/src/makefile.darwin,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** makefile.darwin 31 May 2005 12:00:05 -0000 1.1
--- makefile.darwin 1 Jun 2005 16:27:06 -0000 1.2
***************
*** 1,14 ****
! # PSO - Particle Swarm Optimizer - Copyright Ben Bogart 2003
! # makefile adapted from pool - Copyright (c) 2002 Thomas Grill (xovo at gmx.net)
! #
! # Makefile for gcc @ darwin (OSX)
! #
! # usage:
! # to build run "make -f makefile.pd-darwin"
! # to install (as root), do "make -f makefile.pd-darwin install"
! #
- # your c++ compiler (define only if it's different than g++)
- # CXX=g++
# where are the PD header files?
--- 1,13 ----
! current: pd_darwin
!
! clean: ; rm -f *.pd_linux *.o *.pd_darwin
!
!
! # ----------------------- Mac OSX -----------------------
!
! pd_darwin: ann_mlp.pd_darwin ann_td.pd_darwin ann_som.pd_darwin ann.pd_darwin
!
! .SUFFIXES: .pd_darwin
# where are the PD header files?
***************
*** 21,110 ****
#PD=/usr/local/bin/pd
PD=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/bin/pd
! # where do the flext libraries reside?
! #FLEXTPATH=/usr/local/lib/pd/flext
! #FLEXTPATH=../../grill/flext
!
! # where is fann lib?
! FANNLIB=/usr/local/lib/libfann.a
!
! # where should flext libraries be built?
! TARGDIR=./pd-darwin
!
! # where should pool be installed?
! # (leave blank to omit installation)
! #INSTPATH=/usr/local/lib/pd/extra
! INSTPATH=
!
! # additional compiler flags
! # (check if they match your system!)
! UFLAGS=-malign-power -maltivec
!
! #FLEXTLIB=$(FLEXTPATH)/flext.a
! #FLEXTLIB=$(FLEXTPATH)/pd-darwin/libflext.a
!
! # compiler+linker stuff
! INCLUDES=$(PDPATH)
! LIBPATH=$(FANNLIB)
! FLAGS=-DFLEXT_SYS=2
! CFLAGS=-O6 ${UFLAGS} -Wno-unused -Wno-parentheses -Wno-switch -Wstrict-prototypes
! LIBS=m
! LDFLAGS=-bundle -bundle_loader $(PD)
! FRAMEWORKS=Carbon
!
!
! # ---------------------------------------------
! # the rest can stay untouched
! # ----------------------------------------------
!
! NAME=ann
!
! # all the source files from the package
! SRCS=ann.c ann_mlp.c ann_td.c ann_som.c
! HDRS=
!
! DIR=.
!
! TARGET=$(TARGDIR)/$(NAME).pd_darwin
!
! # default target
! all: $(TARGDIR) $(TARGET)
!
! $(patsubst %,$(DIR)/%,$(SRCS)): $(patsubst %,$(DIR)/%,$(HDRS)) $(CONFIG)
! touch $@
!
! $(TARGDIR):
! -mkdir $(TARGDIR)
!
! $(TARGDIR)/%.o : $(DIR)/%.c
! $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES)) $< -o $@
! # $(CXX) -c $(CFLAGS) $(FLAGS) $< -o $@
!
! #$(TARGET) : $(patsubst %.c,$(TARGDIR)/%.o,$(SRCS)) $(FANNLIB)
! $(TARGET) : $(patsubst %.c,$(TARGDIR)/%.o,$(SRCS))
! $(CXX) $(LDFLAGS) -I$(INCLUDES) $^ $(FANNLIB) $(patsubst %,-framework %,$(FRAMEWORKS)) $(patsubst %,-L%,$(LIBPATH)) $(patsubst %,-l%,$(LIBS)) -o $@
! chmod 755 $@
!
! $(INSTPATH):
! -mkdir $(INSTPATH)
!
! install:: $(INSTPATH)
!
! install:: $(TARGET)
! cp $^ $(INSTPATH)
! # chown root.root $(patsubst %,$(INSTPATH)/%,$(notdir $^))
! # chmod 755 $(patsubst %,$(INSTPATH)/%,$(notdir $^))
!
! .PHONY: clean
! clean:
! rm -f $(TARGDIR)/*.o $(TARGET)
!
!
!
!
!
!
--- 20,46 ----
#PD=/usr/local/bin/pd
PD=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/bin/pd
+ #PD=/Users/davidemorelli/Desktop/robaDavide/Pd-0.38-3.app/Contents/Resources/src/
! # where do the fann libraries reside?
! #FANNLIB=/Users/davidemorelli/Desktop/robaDavide/fann-1.2.0/src/fann.o
! FANNBASE=/Users/davidemorelli/Desktop/robaDavide/fann-1.2.0
! FANNLIB=$(FANNBASE)/src/fann.o \
! $(FANNBASE)/src/fann_train.o \
! $(FANNBASE)/src/fann_train_data.o \
! $(FANNBASE)/src/fann_io.o \
! $(FANNBASE)/src/fann_error.o \
! $(FANNBASE)/src/fann_options.o
! #FANNLIB=/usr/local/lib/libfann.a
+ DARWININCLUDE = -I../../src -I$(PDPATH)
+ DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch
+ .c.pd_darwin:
+ cc $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c
+ cc -bundle -bundle_loader $(PD) -flat_namespace -o $*.pd_darwin $(FANNLIB) *.o
+ # cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $(FANNLIB) *.o
+ # rm -f $*.o
+ # $(FANNLIB)
- Previous message: [PD-cvs] externals/nusmuk/msd2D help-msd2D.pd,1.9,1.10
- Next message: [PD-cvs] externals/iemlib/src/iemlib1 biquad_freq_resp.c, 1.2, 1.3 db2v.c, 1.1.1.1, 1.2 f2note.c, 1.1.1.1, 1.2 forpp.c, 1.1.1.1, 1.2 gate.c, 1.1.1.1, 1.2 iemlib.h, 1.2, 1.3 iemlib1.c, 1.1.1.1, 1.2 sigFIR.c, 1.1.1.1, 1.2 sigfilter.c, 1.2, 1.3 sighml_shelf.c, 1.2, 1.3 sigiem_cot4.c, 1.1.1.1, 1.2 sigiem_delay.c, 1.1.1.1, 1.2 sigiem_pow4.c, 1.1.1.1, 1.2 sigiem_sqrt4.c, 1.1.1.1, 1.2 siglp1_t.c, 1.2, 1.3 sigmov_avrg_kern.c, 1.1.1.1, 1.2 sigpara_bp2.c, 1.2, 1.3 sigpeakenv.c, 1.2, 1.3 sigprvu.c, 1.2, 1.3 sigpvu.c, 1.2, 1.3 sigrvu.c, 1.2, 1.3 sigsin_phase.c, 1.1.1.1, 1.2 sigvcf_filter.c, 1.2, 1.3 soundfile_info.c, 1.1.1.1, 1.2 split.c, 1.2, 1.3 v2db.c, 1.1.1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list