Add makefile
[freerunner-navigation-board:bmp085.git] / userspace / Makefile
1 ALL: libbmp085.so libbmp085.a
2
3 libbmp085.so: bmp085.o
4         $(CC) -shared -Wl,-soname,libbmp085.so -o libbmp085.so bmp085.o
5
6 libbmp085.a: bmp085.o
7         $(AR) rcs libbmp085.a bmp085.o
8
9 bmp085.o: bmp085.c
10         $(CC) -c -fPIC -o bmp085.o bmp085.c
11
12 clean:
13         rm *.o
14         rm *.so
15         rm *.a