Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/camerac/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'camerac/Makefile')
-rw-r--r--camerac/Makefile40
1 files changed, 0 insertions, 40 deletions
diff --git a/camerac/Makefile b/camerac/Makefile
deleted file mode 100644
index 0fb6f76..0000000
--- a/camerac/Makefile
+++ /dev/null
@@ -1,40 +0,0 @@
-PYVER=`python -c "import sys; print '%s.%s' % (sys.version_info[0], sys.version_info[1])"`
-PYTHON=python$(PYVER)
-PYTHON_LIBS=`python-config --libs`
-
-GLIB_INCLUDES=`pkg-config --cflags glib-2.0`
-GLIB_LIBS=`pkg-config --libs glib-2.0`
-
-GTK_INCLUDES=`pkg-config --cflags gtk+-2.0`
-GTK_LIBS=`pkg-config --libs gtk+-2.0`
-
-PYGTK_INCLUDES=`pkg-config --cflags pygtk-2.0`
-PYGTK_LIBS=`pkg-config --libs pygtk-2.0`
-
-CAIRO_INCLUDES=`pkg-config --cflags cairo`
-CAIRO_LIBS=`pkg-config --libs cairo`
-
-PYCAIRO_INCLUDES=`pkg-config --cflags pycairo`
-PYCAIRO_LIBS=`pkg-config --libs pycairo`
-
-INCLUDES=-I. -I/usr/include/${PYTHON} ${GLIB_INCLUDES} ${PYGTK_INCLUDES} ${CAIRO_INCLUDES} ${PYCAIRO_INCLUDES} ${GTK_INCLUDES}
-OPTFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables
-CFLAGS=-g -fPIC -DPIC $(OPTFLAGS) $(INCLUDES)
-LDFLAGS=-shared -nostdlib -Wl,--export-dynamic -pthread ${GLIB_LIBS} ${PYGTK_LIBS} ${CAIRO_LIBS} ${PYCAIRO_LIBS} ${GTK_LIBS} $(PYTHON_LIBS)
-
-ARCH = $(shell arch | grep 64 >/dev/null && echo linux64 || echo linux32)
-LIB_DIR = $(ARCH)_$(PYVER)
-
-all: camera.so
- rm -rf $(LIB_DIR)
- mkdir $(LIB_DIR)
- strip -s $^
- mv $^ $(LIB_DIR)/
- touch $(LIB_DIR)/__init__.py
-
-camera.so: camera.o
- $(CXX) $(LDFLAGS) -o $@ $^
-
-clean:
- rm -f *.o
- rm -f *.so