-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 829 Bytes
/
Makefile
File metadata and controls
29 lines (23 loc) · 829 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
SOURCES = $(shell find ./ -type f -name '*.cpp')
FLAGS = -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio -std=c++17 -lstdc++fs
OBJECTS = $(SOURCES:.cpp=.o)
BUILD_OBJECTS = $(addprefix build/,$(OBJECTS))
COMPILER = g++
LINKER = ld
EXECUTABLE = main
%.o: %.cpp
mkdir -p build/$(@D)
$(COMPILER) $(FLAGS) -c $< -o build/$@
all: clean $(OBJECTS)
$(COMPILER) -o $(EXECUTABLE) $(BUILD_OBJECTS) $(FLAGS)
clean:
rm -f $(EXECUTABLE)
rm -Rf build/
rm -Rf .cache/
mkdir build/
mkdir .cache/
video:
gource -1280x720 --title "TrocChain" --hide progress --max-user-speed 500 --seconds-per-day 0.25 -e 0.005 --bloom-intensity 0.05 --hide filenames -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -crf 19 -threads 0 -bf 0 gource.mp4
clean_users:
rm -Rf blockchain/identity
mkdir blockchain/identity