summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile3
-rw-r--r--src/common/common.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 8ef4aec..2a814e1 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,6 +1,5 @@
 #!/usr/bin/env -S gmake -f
 
-GLAD ?= glad
 MKDIR ?= mkdir -p
 
 libs ::= openmpt fluidsynth
@@ -11,6 +10,8 @@ srcs ::= $(wildcard src/modules/*.c src/common/*.c)
 objs ::= $(addprefix out/,$(notdir ${srcs:.c=.o}))
 deps ::= $(addprefix out/,$(notdir ${srcs:.c=.d}))
 
+.SECONDARY:
+
 .PHONY: all run clean
 
 all: out/mu-SDL2 out/mu-portaudio
diff --git a/src/common/common.c b/src/common/common.c
index 3fb1c6a..5ce79ad 100644
--- a/src/common/common.c
+++ b/src/common/common.c
@@ -18,7 +18,7 @@ int (*file_ext(char *file))(struct blob *, struct userdata *) {
 }
 
 struct blob load_file(char const *const name) {
-	const size_t START_SIZE = 1;
+	const size_t START_SIZE = 8192;
 	FILE *file = fopen(name, "rb");
 	if (file == NULL) {
 		return (struct blob) {.data = NULL};