Initial commit with current version (0.3.3)
[pyiw] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..45b7f35
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+# jeremy@emperorlinux.com
+
+NAME  = pyiw
+GCC   = gcc -Wall
+FLAGS = -I/usr/include/python2.4 -I/home/cubicool/local/include
+LIBS  = -liw -L/home/cubicool/local/lib
+
+static: pyiw.c
+       @echo "Statically Building/Linking $(NAME)"
+       @$(GCC) $(FLAGS) -Istaticlibiw $(<) -shared -o $(NAME).so staticlibiw/libiw.a
+
+dynamic: pyiw.c
+       @echo "Dynamically Building/Linking $(NAME)"
+       @$(GCC) $(FLAGS) $(LIBS) $(<) -shared -o $(NAME).so
+
+clean:
+       @rm -rf *.o
+       @rm -rf $(NAME).so
+       @rm -rf $(NAME).so.t*