-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
28 lines (21 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
SRC := $(foreach x, ./src, $(wildcard $(addprefix $(x)/*,.c*)))
LIB := $(foreach x, ./lib, $(wildcard $(addprefix $(x)/*,.c*)))
DIRS := $(foreach x, ./src/**, $(wildcard $(addprefix $(x)/*,.c*)))
INCLUDES:=$(shell pkg-config --cflags libavformat libavcodec libswresample libswscale libavutil gtk+-3.0 )
LIBS=$(shell pkg-config --libs gtk+-3.0 )
out.o:
gcc ${SRC} -I include ${INCLUDES} ${DIRS} -o build/krokodil -pthread -ldiscord -lcurl ${LIBS} 2> /dev/null && ./build/krokodil
test:
gcc ${SRC} -I include ${INCLUDES} ${DIRS} -o build/krokodil -pthread -ldiscord -lcurl ${LIBS} && ./build/krokodil
install:
chmod +x INSTALL && sh INSTALL
update:
chmod +x UPDATE && sh UPDATE
win:
gcc ${SRC} -I include ${INCLUDES} ${DIRS} -o build/krokodil.exe -pthread -ldiscord -lcurl ${LIBS} 2> /dev/null && wine ./build/krokodil.exe
w:
mcs rpc/prog.cs && mono rpc/prog.exe
dist:
gcc ${SRC} -I include ${INCLUDES} ${DIRS} -o build/krokodil -pthread -ldiscord -lcurl ${LIBS}
desktop:
desktop-file-validate krokodil.desktop && desktop-file-install --dir=$HOME/.local/share/applications ~/krokodil.desktop && update-desktop-database ~/.local/share/applications