about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d5e7069..9775895 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,12 @@
-CFLAGS ?= -std=c99 -Wall -Werror -static -g -O0
+MUSL_LIB ?= /usr/lib/musl
+MUSL_DEV ?= /usr/include/musl
+
+DEFINES ?= -DMUSL_LIB=\"$(MUSL_LIB)\" -DMUSL_DEV=\"$(MUSL_DEV)\"
+CFLAGS ?= -std=c99 -Wall -Werror -static -g -O0 $(DEFINES)
+
 .DEFAULT_GOAL := all
 
-BOOTSTRAP_SOURCES = boot/catboot.c boot/common.c boot/lex.c boot/tree.c boot/visit.c boot/parse.c
+BOOTSTRAP_SOURCES = boot/catboot.c boot/common.c boot/lex.c boot/tree.c boot/visit.c boot/parse.c boot/build.c
 BOOTSTRAP_TEST_SOURCES = boot/tests/test.c
 SOURCES = src/catskill.csk