1 CFLAGS = -g -I. -I/usr/local/include
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
12 demo: demo.o hardware.o
13 $(CC) $(LDFLAGS) -o demo demo.o hardware.o $(LIBS)