CHICKEN_C = csc CSC_FLAGS += -K prefix -static # sextest reuses sexc's reader (and its utils dependency) instead of # duplicating the S-expression reader: both are linked from the root, # found there through the repository path ROOT = ../.. export CHICKEN_REPOSITORY_PATH := $(abspath $(ROOT)):$(or $(CHICKEN_REPOSITORY_PATH),$(shell chicken-install -repository)) sextest: sextest.scm $(ROOT)/reader.o $(ROOT)/utils.o $(CHICKEN_C) $(CSC_FLAGS) sextest.scm -o sextest -link reader,utils clean: rm -f sextest .PHONY: clean