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 C. Scott Ananian <cscott@laptop.org>2008-09-24 22:02:46 (GMT)
commit387839bada580136c7de031739c15c1653231cc3 (patch)
tree8502aadf84b9de36265515992195b76e67316383
parent390346b9afc9f002b5e6f4884c29597418133669 (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: