-
Notifications
You must be signed in to change notification settings - Fork 528
/
Makefile
48 lines (38 loc) · 987 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
PREFIX = /usr
CXX ?= g++
src = src/versionparser.cpp \
src/buildsparser.cpp \
src/archive.cpp \
src/network.cpp \
src/debug.cpp \
src/installinfo.cpp \
src/patcher.cpp \
src/tar.cpp \
src/main.cpp \
src/ziparchive.cpp \
src/toolsdownloader.cpp \
src/logging/combinedlogstrategy.cpp \
src/logging/terminallogstrategy.cpp \
src/logging/streamlogstrategy.cpp \
src/logging/logstrategy.cpp \
src/patchversioner.cpp \
src/unlocker_lnx.cpp
obj = $(src:.cpp=.o)
INCLUDE = -Iinclude
CXXFLAGS = -Wall -std=c++17 $(INCLUDE)
LIBS += -lcurl -lzip -lstdc++fs
auto-unlocker: $(obj)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
.PHONY: clean
clean:
rm -f $(obj) auto-unlocker
depend: $(src)
makedepend -- $(INCLUDE) $^
.PHONY: install
install: auto-unlocker
install -D $< $(DESTDIR)$(PREFIX)/bin/auto-unlocker
# mkdir -p $(DESTDIR)$(PREFIX)/bin
# cp $< $(DESTDIR)$(PREFIX)/bin/auto-unlocker
.PHONY: uninstall
uninstall: auto-unlocker
-rm -f $(DESTDIR)$(PREFIX)/bin/auto-unlocker