Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 9c24ecf4710536fbd408b77cca1a9b4020a2d359 @badgeek committed Jun 17, 2011
Showing with 1,063 additions and 0 deletions.
  1. BIN .DS_Store
  2. BIN .fux_glitch.cpp.swp
  3. +42 −0 Makefile
  4. +359 −0 fux_kinect.cpp
  5. +136 −0 fux_kinect.h
  6. +526 −0 libfreenect.h
BIN .DS_Store
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,42 @@
+# change to your local directories!
+PD_APP_DIR = /Applications/Pd-extended.app/Contents/Resources
+PD_DIR = /Users/xcorex/Documents/Documents/Projects/Puredata/PdSource/Pd-0.42.5-extended/pd
+GEM_DIR = /Users/xcorex/Documents/Documents/Projects/Puredata/PdSource/Pd-0.42.5-extended/Gem
+# build flags
+
+INCLUDES = -I$(PD_DIR)/include
+CPPFLAGS = -g -O2 -fPIC -freg-struct-return -Os -falign-loops=32 -falign-functions=32 -falign-jumps=32 -funroll-loops -ffast-math -arch i386 -mmmx -fpascal-strings
+
+#linux doesnt work yet
+UNAME := $(shell uname -s)
+ifeq ($(UNAME),Linux)
+ CPPFLAGS += -DLINUX
+ INCLUDES += `pkg-config --cflags libfreenect`
+ LDFLAGS = -export_dynamic -shared
+ LIBS = `pkg-config --libs libfreenect`
+ EXTENSION = pd_linux
+endif
+ifeq ($(UNAME),Darwin)
+ CPPFLAGS += -DDARWIN
+ INCLUDES += -I/sw/include -I/sw/include/FTGL -I/sw/include/freetype2 -I$(GEM_DIR)/src -I/usr/include/FTGL -I/usr/include/freetype2 -I$(PD_DIR)/src -I$(PD_DIR) -I./
+ LDFLAGS = -c -arch i386
+ LIBS = -lm -lfreenect
+ EXTENSION = pd_darwin
+endif
+
+.SUFFIXES = $(EXTENSION)
+
+SOURCES = fux_kinect
+
+all:
+ g++ $(LDFLAGS) $(INCLUDES) $(CPPFLAGS) -o $(SOURCES).o -c $(SOURCES).cpp
+ g++ -o $(SOURCES).$(EXTENSION) -undefined dynamic_lookup -arch i386 -dynamiclib -mmacosx-version-min=10.3 -undefined dynamic_lookup -framework QuickTime -framework Carbon -framework AGL -framework OpenGL -arch i386 ./*.o -L/sw/lib -lfreeimage -lftgl -lstdc++ -ldl -lz -lm -lpthread -lfreenect -L$(PD_DIR)/bin -L$(PD_DIR)
+ rm -fr ./*.o
+deploy:
+ rm -fr $(PD_APP_DIR)/extra/$(SOURCES).$(EXTENSION)
+ mv *.$(EXTENSION) $(PD_APP_DIR)/extra/
+clean:
+ rm -f $(SOURCES)*.o
+ rm -f $(SOURCES)*.$(EXTENSION)
+distro: clean all
+ rm *.o
Oops, something went wrong.

0 comments on commit 9c24ecf

Please sign in to comment.