From 21293c421ffa4339553ea5272c7ea4b0d79c7c67 Mon Sep 17 00:00:00 2001 From: alex-eg Date: Fri, 26 Sep 2025 16:52:34 +0300 Subject: [PATCH] enable prefix form for keywords I like writing :keyword more than #:keyword. That hash sign seems redundant --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index eb30c48..5702ab8 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,21 @@ CHICKEN_C = csc +CSC_FLAGS = -K prefix MODULES = sexc fmt-c fmt-c-writer semen sex-macros sex-modules sex-reader utils OBJ = $(MODULES:%=%.o) sexc: main.o $(OBJ) - $(CHICKEN_C) $^ -o $@ + $(CHICKEN_C) $(CSC_FLAGS) $^ -o $@ main.o: main.scm - $(CHICKEN_C) $< -c -o $@ + $(CHICKEN_C) $(CSC_FLAGS) $< -c -o $@ %.o: %.scm - $(CHICKEN_C) $< -e -c -o $@ + $(CHICKEN_C) $(CSC_FLAGS) $< -e -c -o $@ sex-tests: $(OBJ) tests/*.scm - cd ./tests && $(CHICKEN_C) run.scm -c -o sex-tests.o - $(CHICKEN_C) $(OBJ) ./tests/sex-tests.o -o sex-tests + cd ./tests && $(CHICKEN_C) $(CSC_FLAGS) run.scm -c -o sex-tests.o + $(CHICKEN_C) $(CSC_FLAGS) $(OBJ) ./tests/sex-tests.o -o sex-tests clean: rm -f $(OBJ) sexc sex-tests main.o ./tests/sex-tests.o