forked from DeaDBeeF-Player/vfs_rar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (53 loc) · 849 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
CPPFLAGS = -c -fPIC -Wall \
-I./ -I./unrar
LDFLAGS = -shared -fPIC
DST_OBJS = vfs_rar.o
RARLIB_OBJS = $(addprefix unrar/, \
strlist.o \
strfn.o \
pathfn.o \
savepos.o \
smallfn.o \
global.o \
file.o \
filefn.o \
filcreat.o \
archive.o \
arcread.o \
unicode.o \
system.o \
isnt.o \
crypt.o \
crc.o \
rawread.o \
encname.o \
resource.o \
match.o \
timefn.o \
rdwrfn.o \
consio.o \
options.o \
ulinks.o \
errhnd.o \
rarvm.o \
rijndael.o \
getbits.o \
sha1.o \
extinfo.o \
extract.o \
volume.o \
list.o \
find.o \
unpack.o \
cmddata.o \
recvol.o scantree.o rs.o filestr.o \
)
vfs_rar.so: $(RARLIB_OBJS) $(DST_OBJS)
g++ $(LDFLAGS) $^ -o $@
install:
-mkdir -p ~/.local/lib/deadbeef
-cp vfs_rar.so ~/.local/lib/deadbeef
uninstall:
-rm -rf ~/.local/lib/deadbeef/vfs_rar.so
clean:
-rm -rf *.so *.o unrar/*.o