]> git.rkrishnan.org Git - dttsp.git/blobdiff - pyhw2/Makefile
New hardware control code
[dttsp.git] / pyhw2 / Makefile
diff --git a/pyhw2/Makefile b/pyhw2/Makefile
new file mode 100644 (file)
index 0000000..f8e1fc7
--- /dev/null
@@ -0,0 +1,13 @@
+CFLAGS = -g -I. -I/usr/local/include
+LDFLAGS =
+LIBS = -lm
+
+
+python:
+       swig -python hardware.i
+       gcc -fPIC -I. -O3 -I/usr/include/python -c hardware_wrap.c
+       gcc -fPIC -I. -O3 -c hardware.c
+       ld -shared hardware.o hardware_wrap.o -o _sdr1khw.so
+
+demo:  demo.o hardware.o
+       $(CC) $(LDFLAGS) -o demo demo.o hardware.o $(LIBS)