summaryrefslogtreecommitdiff
path: root/packages/python/python-pywpa-0.3.4/Makefile
diff options
context:
space:
mode:
authorNicolas Ferre <nicolasfr@gmail.com>2006-12-03 21:35:16 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2006-12-03 21:35:16 +0000
commit576d10a0f51634cf0c673db85b3b7293e45c32ef (patch)
tree5a29239731ac87b9b16cbdb95e50c1816f18224e /packages/python/python-pywpa-0.3.4/Makefile
parent22c9eea35a98e1c2dd2d413f4066e88277b6c1cb (diff)
python-pywpa: added 0.3.4 - close #1639
Diffstat (limited to 'packages/python/python-pywpa-0.3.4/Makefile')
-rw-r--r--packages/python/python-pywpa-0.3.4/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/python/python-pywpa-0.3.4/Makefile b/packages/python/python-pywpa-0.3.4/Makefile
new file mode 100644
index 0000000000..0206f1c229
--- /dev/null
+++ b/packages/python/python-pywpa-0.3.4/Makefile
@@ -0,0 +1,28 @@
+# Simple Makefile
+
+NAME = pywpa/_pywpa
+CFLAGS += -Iwpactrl
+OBJS = pywpa.o
+
+%.o: %.c
+ @echo "Compiling $(<)"
+ @$(CC) $(CFLAGS) -c $(<) -o $(@)
+
+$(NAME).so: objects libwpactrl
+ @echo "Statically Linking $(NAME)"
+ @$(CC) $(CFLAGS) $(OBJS) wpactrl/wpa_ctrl.o -shared -o $(NAME).so
+
+main: objects libwpactrl
+ @echo "Creating test"
+ @$(CC) $(CFLAGS) $(OBJS) wpactrl/wpa_ctrl.o -o test -lpython2.4
+
+objects: $(OBJS)
+
+libwpactrl:
+ @make -C wpactrl > /dev/null
+
+clean:
+ @rm -rf *.o
+ @rm -rf $(NAME).so
+ @rm -rf $(NAME).so.t*
+ @make -C wpactrl clean 2>/dev/null