diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b213a03 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +all : test + +CFLAGS:=-Iinclude -fPIC -g +LDFLAGS:=-lpthread -lusb-1.0 + +test : test.c lib/libsurvive.so + gcc -o $@ $^ $(LDFLAGS) $(CFLAGS) + +lib/libsurvive.so : src/os_generic.o src/survive.o src/survive_usb.o + gcc -o $@ $^ $(LDFLAGS) -shared + +clean : + rm -rf *.o src/*.o *~ src/*~ test libsurvive.so + + + |