aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b213a03d41840f1da23cc433a280ce73c530d0c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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