-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1.15 KB
/
Makefile
File metadata and controls
53 lines (39 loc) · 1.15 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
CC = clang
VCC = v
VCC_FLAGS = -enable-globals -cc $(CC)
OUT = kurarin
ROOT = .
ASSETS = assets
SHADER_LVL = glsl410
all: $(OUT)
$(ASSETS)/osu/shaders/slider.h:
$(VCC) shader $(ASSETS)/osu/shaders/ -l $(SHADER_LVL)
$(OUT): clean format $(ASSETS)/osu/shaders/slider.h
$(VCC) $(VCC_FLAGS) -o $(OUT) $(ROOT)
debug: clean format $(ASSETS)/osu/shaders/slider.h
$(VCC) $(VCC_FLAGS) -cg -g -d trace_sokol_memory -o $(OUT) $(ROOT)
prod: clean format $(ASSETS)/osu/shaders/slider.h
$(VCC) $(VCC_FLAGS) -prod -o $(OUT) $(ROOT)
release: $(OUT)
wget https://hatsune-miku.has.rocks/r/hikari.zip
mkdir assets/osu/maps/hikari -p
unzip hikari.zip -d assets/osu/maps/hikari
mkdir build -p
mkdir build/assets -p
mkdir build/assets/osu -p
mkdir build/assets/osu/maps/hikari -p
cp kurarin build/ -r
cp assets/common build/assets/ -r
cp assets/osu/shaders build/assets/osu/shaders -r
cp assets/osu/skins build/assets/osu/skins -r
cp assets/osu/maps/hikari build/assets/osu/maps -r
cd build
zip -r ../linux_x64.zip .
cd ..
rm -rf build/
clean: $(OUT)
rm -f $(OUT) $(ASSETS)/osu/shaders/*.h
format:
$(VCC) fmt -w $(ROOT)
run: $(OUT)
./$(OUT)