forked from alex-eg/sex
Introducing Sex SEMantic ENgine: the semen. Also split reader to other file (it can be replaced in the future). Macro expansion inside Sex code doesn't work yet, and it must be done in semen, not during fmt-c generation as before.
21 lines
452 B
Makefile
21 lines
452 B
Makefile
CHICKEN_C = csc
|
|
|
|
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 $@
|
|
|
|
main.o: main.scm
|
|
$(CHICKEN_C) $< -c -o $@
|
|
|
|
%.o: %.scm
|
|
$(CHICKEN_C) $< -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
|
|
|
|
clean:
|
|
rm -f $(OBJ) sexc sex-tests main.o ./tests/sex-tests.o
|