diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-12-16 00:38:55 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-12-16 00:38:55 +0000 |
commit | c05865f60bf15e962b6b30eceb8fa81358f1eaa2 (patch) | |
tree | 079d44507aab89b02f8269485e9b74a5761ab688 | |
parent | 6fd40fd5265b6941d5114f6b4f82e1c6b6cdbc0d (diff) |
test
svn path=/trunk/externals/pdp/; revision=4230
-rw-r--r-- | Makefile | 70 | ||||
-rw-r--r-- | Makefile.config | 55 | ||||
-rw-r--r-- | Makefile.config.in | 55 |
3 files changed, 180 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..105c2b9 --- /dev/null +++ b/Makefile @@ -0,0 +1,70 @@ +include Makefile.config + + +all: $(PDP_TARGET) + +pdp_all: + make -C system + make -C puredata + make -C modules + +darwin: pdp_all + rm -f pdp.pd_darwin + $(CC) -o pdp.pd_darwin modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS) -bundle -undefined error -twolevel_namespace -bundle_loader $(PD_EXECUTABLE) + + +linux: pdp_all + rm -f pdp.pd_linux + $(CC) -export_dynamic -shared -o pdp.pd_linux modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS) + +linux_mmx: pdp_all + rm -f pdp.pd_linux + $(CC) -export_dynamic -shared -o pdp.pd_linux modules/*/*.o system/pdp.o system/*/*.o puredata/*.o $(PDP_LIBS) + +buildclean: + make -C include clean + make -C system clean + make -C puredata clean + make -C modules clean + +clean: buildclean + rm -f pdp.pd_linux + rm -f *~ + +distroclean: buildclean + make -C scaf clean + make -C opengl clean + +mrproper: clean distroclean + make -C scaf mrproper + rm -rf configure + rm -rf config.log + rm -rf config.status + rm -rf autom4te.cache + #this needs to stay in to keep the makefiles working + #rm -rf Makefile.config + +tags: + etags --language=auto include/*.h system/*.c system/mmx/*.s system/*/*.c puredata/*.c \ + modules/*/*.c scaf/*/*.c scaf/*/*.s opengl/*/*.c + +tagsclean: + rm -f TAGS + + +install: all + #check if pd is installed. if this fails make install will stop here. + test -d $(prefix)/lib/pd + install -d $(prefix)/lib/pd/extra + install -m 755 $(PDP_LIBRARY_NAME) $(prefix)/lib/pd/extra + install -m 755 -d $(prefix)/include/pdp + install -m 644 include/*.h $(prefix)/include/pdp + install -m 644 abstractions/*.pd $(prefix)/lib/pd/extra + install -m 644 doc/objects/*.pd $(prefix)/lib/pd/doc/5.reference + install -m 755 -d $(prefix)/lib/pd/doc/pdp + install -m 755 -d $(prefix)/lib/pd/doc/pdp/introduction + install -m 755 -d $(prefix)/lib/pd/doc/pdp/examples + install -m 644 doc/reference.txt $(prefix)/lib/pd/doc/pdp + install -m 644 doc/introduction/*.pd $(prefix)/lib/pd/doc/pdp/introduction + install -m 644 doc/examples/*.pd $(prefix)/lib/pd/doc/pdp/examples + install -m 755 bin/pdp-config $(prefix)/bin diff --git a/Makefile.config b/Makefile.config new file mode 100644 index 0000000..d023d8f --- /dev/null +++ b/Makefile.config @@ -0,0 +1,55 @@ +# if configure can't find the m_pd.h header +# specify pd's include path here and ignore the warning +# +#PD_CPPFLAGS=-I/path_to_pd_dir/src +#PD_EXECUTABLE=/path_to_pd_dir/bin/pd +PD_CPPFLAGS= +PD_EXECUTABLE=/usr/local/bin/pd +PDP_CFLAGS=-DPD -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -O2 -funroll-loops -fomit-frame-pointer -ffast-math + +prefix=/usr/local +PDP_VERSION = 0.12.4 +PDP_TARGET = darwin +PDP_LIBRARY_NAME = pdp.pd_darwin +PDP_EXTRA_CPPFLAGS = -I/sw/include +PDP_EXTRA_CFLAGS = +SDL_FLAGS = -D_REENTRANT + +# optional objects +PDP_OPTMOD = pdp_xv.o pdp_qt.o pdp_glx.o +PDP_X11MOD = pdp_xwindow.o pdp_xvideo.o +PDP_PDMOD = +PDP_OPTTYPES = pdp_matrix.o +PDP_MATRIX_BASIC = pdp_mat_mul.o pdp_mat_lu.o pdp_mat_vec.o +PDP_IMAGE_BASIC = pdp_cheby.o +PDP_IMAGE_SPECIAL = pdp_histo.o + + + + +PDP_CPPFLAGS = -I. -I/usr/X11R6/include -I../include -I../../include $(PD_CPPFLAGS) $(PDP_EXTRA_CPPFLAGS) +PDP_LIBS = -lgslcblas -lm -L/sw/lib -lgslcblas -lgsl -lz -lpng -L/usr/X11R6/lib -lX11 -lXv -lXext -lquicktime -lGL -lGLU +PDP_AFLAGS = +#--gstabs + +PDP_CFLAGS += $(SDL_CFLAGS) $(PDP_EXTRA_CFLAGS) -DPDP_VERSION=\"$(PDP_VERSION)\" + +#PDP_CFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math \ +# -Wall -W -Wstrict-prototypes \ +# -Wno-unused -Wno-parentheses -Wno-switch -DPDP_VERSION=\"$(PDP_VERSION)\" \ +# -g $(SDL_CFLAGS) $(PDP_EXTRA_CFLAGS) +# -Werror +# -Wshadow + +# compiler and assembler +#CC = gcc-3.2 +#CC = gcc +#AS = as +CC = cc + +# build rules + +.c.o: + $(CC) $(PDP_CFLAGS) $(PDP_CPPFLAGS) -o $*.o -c $*.c +.s.o: + $(AS) -o $*.o $*.s $(PDP_AFLAGS) diff --git a/Makefile.config.in b/Makefile.config.in new file mode 100644 index 0000000..e93eef9 --- /dev/null +++ b/Makefile.config.in @@ -0,0 +1,55 @@ +# if configure can't find the m_pd.h header +# specify pd's include path here and ignore the warning +# +#PD_CPPFLAGS=-I/path_to_pd_dir/src +#PD_EXECUTABLE=/path_to_pd_dir/bin/pd +PD_CPPFLAGS=@PD_CPPFLAGS@ +PD_EXECUTABLE=@PD_EXECUTABLE@ +PDP_CFLAGS=@PDP_CFLAGS@ + +prefix=@prefix@ +PDP_VERSION = @PDP_VERSION@ +PDP_TARGET = @PDP_TARGET@ +PDP_LIBRARY_NAME = @PDP_LIBRARY_NAME@ +PDP_EXTRA_CPPFLAGS = @PDP_EXTRA_CPPFLAGS@ +PDP_EXTRA_CFLAGS = @PDP_EXTRA_CFLAGS@ +SDL_FLAGS = -D_REENTRANT + +# optional objects +PDP_OPTMOD = @PDP_OPTMOD@ +PDP_X11MOD = @PDP_X11MOD@ +PDP_PDMOD = @PDP_PDMOD@ +PDP_OPTTYPES = @PDP_OPTTYPES@ +PDP_MATRIX_BASIC = @PDP_MATRIX_BASIC@ +PDP_IMAGE_BASIC = @PDP_IMAGE_BASIC@ +PDP_IMAGE_SPECIAL = @PDP_IMAGE_SPECIAL@ + + + + +PDP_CPPFLAGS = -I. -I/usr/X11R6/include -I../include -I../../include $(PD_CPPFLAGS) $(PDP_EXTRA_CPPFLAGS) +PDP_LIBS = @LIBS@ +PDP_AFLAGS = +#--gstabs + +PDP_CFLAGS += $(SDL_CFLAGS) $(PDP_EXTRA_CFLAGS) -DPDP_VERSION=\"$(PDP_VERSION)\" + +#PDP_CFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math \ +# -Wall -W -Wstrict-prototypes \ +# -Wno-unused -Wno-parentheses -Wno-switch -DPDP_VERSION=\"$(PDP_VERSION)\" \ +# -g $(SDL_CFLAGS) $(PDP_EXTRA_CFLAGS) +# -Werror +# -Wshadow + +# compiler and assembler +#CC = gcc-3.2 +#CC = gcc +#AS = as +CC = @CC@ + +# build rules + +.c.o: + $(CC) $(PDP_CFLAGS) $(PDP_CPPFLAGS) -o $*.o -c $*.c +.s.o: + $(AS) -o $*.o $*.s $(PDP_AFLAGS) |