diff options
| author | LLLL Colonq <llll@colonq> | 2026-06-30 14:30:19 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-06-30 14:30:19 -0400 |
| commit | 1c028e3a2250a56eface56ebbb1835d77e4e2579 (patch) | |
| tree | 98ea5da9d75e87f44bb3eb2e153810a6a820f9b6 /Makefile | |
| parent | 1d4447bcd888dd0bd20cf4b6dd7f9192145debf0 (diff) | |
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -3,12 +3,17 @@ EXE ?= pit CC ?= gcc AR ?= ar override CPPFLAGS += -MMD -MP -override CFLAGS += -Oz -fPIC --std=c99 -g -Ideps/ -Isrc/ -Iinclude/ -Wall -Wextra -Wpedantic -Wconversion -Wformat-security -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -Wfloat-equal -Wundef -Wpointer-arith -Wbad-function-cast -Wlogical-op -Wmissing-braces -Wcast-align -Wstrict-overflow=5 -fwrapv # -ftrapv +override CFLAGS += -fPIC --std=c99 -g -Ideps/ -Isrc/ -Iinclude/ -Wall -Wextra -Wpedantic -Wconversion -Wformat-security -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -Wfloat-equal -Wundef -Wpointer-arith -Wbad-function-cast -Wlogical-op -Wmissing-braces -Wcast-align -Wstrict-overflow=5 -fwrapv # -ftrapv override LDFLAGS += -g -static BUILD = build_$(CC) -SRCS_CORE := src/utils.c src/arena.c src/lexer.c src/parser.c src/runtime.c src/library.c +SRCS_CORE := \ + src/utils.c src/arena.c src/lexer.c src/parser.c src/runtime.c \ + src/runtime/value.c \ + src/runtime/value/small.c src/runtime/value/cell.c src/runtime/value/cons.c src/runtime/value/array.c src/runtime/value/bytes.c src/runtime/value/func.c src/runtime/value/nativedata.c \ + src/runtime/symtab.c src/runtime/dump.c src/runtime/macroexpand.c src/runtime/eval.c src/runtime/gc.c \ + src/library.c OBJECTS_CORE := $(SRCS_CORE:src/%.c=$(BUILD)/%.o) LIB_CORE := libcolonq-pit.a SRCS_NATIVE := src/native.c @@ -39,6 +44,8 @@ $(LIB_NATIVE): $(OBJECTS_NATIVE) $(BUILD): mkdir $(BUILD)/ + mkdir $(BUILD)/runtime/ + mkdir $(BUILD)/runtime/value/ $(BUILD)/%.o: src/%.c | $(BUILD) $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< |
