build the unit tests and sextest from the root
Each subdirectory's Makefile repeated the compiler's module list just to link one program, and its result was copied back to the root anyway.
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
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
|
||||
Reference in New Issue
Block a user