]> git.rkrishnan.org Git - dttsp.git/blob - pyhw2/Makefile
New hardware control code
[dttsp.git] / pyhw2 / Makefile
1 CFLAGS = -g -I. -I/usr/local/include
2 LDFLAGS =
3 LIBS = -lm
4
5
6 python:
7         swig -python hardware.i
8         gcc -fPIC -I. -O3 -I/usr/include/python -c hardware_wrap.c
9         gcc -fPIC -I. -O3 -c hardware.c
10         ld -shared hardware.o hardware_wrap.o -o _sdr1khw.so
11
12 demo:   demo.o hardware.o
13         $(CC) $(LDFLAGS) -o demo demo.o hardware.o $(LIBS)