blob: 79010b6d317564d23721ee88f9e29caa3da07068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
OBJS = dpflib.o rawusb.o
CFLAGS = -Wall -fPIC -I../include -g
ifndef DESTDIR
DESTDIR = ..
endif
all: libdpf.a fwload
fwload: fwload.o libdpf.a
$(CC) -o $@ fwload.o -L. -ldpf -lusb
testusb: testusb.o libdpf.a
$(CC) -o $@ testusb.o -L. -ldpf -lusb
libdpf.a: $(OBJS)
ar ruv $@ $(OBJS)
clean:
rm -f fwload libdpf.a *.o
install: all
cp fwload libdpf.a $(DESTDIR)
|