-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (22 loc) · 667 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (22 loc) · 667 Bytes
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
CC = gcc
TARGET = apkxhunter
PREFIX ?= /usr
SRC_DIR = Apkx-Hunter/src
INC_DIR = Apkx-Hunter/include
CFLAGS = -O2 -I$(INC_DIR)
LDFLAGS = -lssl -lcrypto -lm
SRCS = $(wildcard $(SRC_DIR)/*.c)
all:
$(CC) $(SRCS) $(CFLAGS) $(LDFLAGS) -o $(TARGET)
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
mkdir -p $(DESTDIR)$(PREFIX)/share/apkx-hunter
install -m644 model.bin $(DESTDIR)$(PREFIX)/share/apkx-hunter/model.bin
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)
rm -rf $(DESTDIR)$(PREFIX)/share/apkx-hunter
clean:
rm -f $(TARGET)
rebuild: clean all
.PHONY: all clean rebuild install uninstall