Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@laptop.org>2008-09-24 22:01:54 (GMT)
committer Daniel Drake <dsd@laptop.org>2008-11-22 18:27:07 (GMT)
commit5379e9cb5968a73331a20879b72549481f405bc6 (patch)
tree38fb7bc581398e66d5d1110994ac519e117743cd
parentea83579f92abcdf7d23f774d2a4d751d071358c9 (diff)
Make Makefile sane.
-rwxr-xr-xMakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3cd0564..265b3ee 100755
--- a/Makefile
+++ b/Makefile
@@ -24,10 +24,12 @@ LDFLAGS=-shared -nostdlib -Wl,--export-dynamic -pthread
all: build link
-build:
+build: _camera.o
+_camera.o: _camera.c
gcc ${INCLUDES} ${ARCHFLAGS} ${OPTFLAGS} ${CFLAGS} -c _camera.c -o _camera.o
-link:
+link: _camera.so
+_camera.so: _camera.o
g++ ${LDFLAGS} _camera.o ${GLIB_LIBS} ${PYGTK_LIBS} ${CAIRO_LIBS} ${PYCAIRO_LIBS} ${GTK_LIBS} -Wl,-soname -Wl,_camera.so -o _camera.so
clean: