-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
34 lines (27 loc) · 963 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
# Project: Catherine Framework (https://github.com/battleoverflow/catherine)
# Author: battleoverflow (https://github.com/battleoverflow)
# License: BSD 2-Clause
NAME=catherine
PROJ_VERSION=0.6.1
run:
@echo "Building $(NAME) v$(PROJ_VERSION)"
make setup_env
make build
make modules
setup_env:
sudo mkdir -p /opt/catherine/modules
sudo mkdir -p /opt/catherine/modules/db
sudo mkdir -p /opt/catherine/modules/formats/exe
sudo mkdir -p /opt/catherine/modules/formats/hex
sudo mkdir -p /opt/catherine/modules/mercy
sudo mkdir -p /opt/catherine/modules/net/netscan
sudo mkdir -p /opt/catherine/modules/web/parsers
pip3 install -r requirements.txt
build:
cargo check && cargo build
modules:
chmod +x build_modules.sh && sudo ./build_modules.sh
@echo "[+] Configuring Hex 'C' module..."
sudo cc src/modules/formats/hex/c_hex_dump.c -Wall -shared -o /opt/catherine/modules/formats/hex/hex.so
# Cleanup spec files from pyinstaller
sudo rm *.spec