[PD] SQLite3DBv0.03

Frank Barknecht fbar at footils.org
Mon Mar 2 10:56:22 CET 2009


Hallo,
Mike McGonagle hat gesagt: // Mike McGonagle wrote:

> Also, the 'makefile' only contains a process for making a 'pd_darwin'
> external for the Mac. It should not be difficult to compile for Unix
> or Windows, as it is Ansi-C. Everything should work with Vanilla Pd as
> well.

Attached is a quickie makefile to compile a pd_linux. Use "make
pd_linux". 

Ciao
-- 
 Frank Barknecht            Do You RjDj.me?          _ ______footils.org__
-------------- next part --------------
export MACOSX_DEPLOYMENT_TARGET = 10.4

pd_darwin: sqlite3db.pd_darwin

.SUFFIXES: .pd_darwin

MYINSTALL = ..
MYHELP = ../../help/

DARWINCFLAGS = -DMACOSX -DUNIX -DPD -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch

DARWINCINCLUDE = -I/Applications/Pd-0.42-4.app/Contents/Resources/src/

sqlite3.o:	sqlite3.c
	cc $(DARINWCFLAGS) $(DARWINCINCLUDE) -o sqlite3.o -c sqlite3.c

sqlite3db.pd_darwin: sqlite3db.c sqlite3.o
	cc $(DARWINCFLAGS) $(DARWINCINCLUDE) -o $*.o -c $*.c
	cc -bundle -undefined dynamic_lookup -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
		-o $*.pd_darwin $*.o sqlite3.o

clean:
	rm -f *.o *.pd_darwin *.pd_linux

minstall:
	mv -f *.pd_darwin $(MYINSTALL)


# ----------------------- LINUX i386 -----------------------


pd_linux: sqlite3db.pd_linux

.SUFFIXES: .pd_linux

TARGDIR= ./

#-----------------------------------------------
EXSRCDIR= .

LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
    -Wall -W -Wshadow -Wstrict-prototypes \
    -Wno-unused -Wno-parentheses -Wno-switch

.c.pd_linux:
	cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $(EXSRCDIR)$*.o -c $*.c 
	ld -export_dynamic  -shared -o $(TARGDIR)$*.pd_linux $(EXSRCDIR)$*.o -lc -lm -lsqlite3 $(LDFLAGS)
	strip --strip-unneeded $(TARGDIR)$*.pd_linux
	rm $(EXSRCDIR)$*.o 
#	cp $(TARGDIR)$*.pd_linux $(EXTERNALDIR)





























More information about the Pd-list mailing list