Welcome to the CHICKEN Scheme pasting service

make magic for csc pasted by andyjpb on Mon Feb 24 15:35:47 2014

%.import.so : %.import.scm
        $(CSC) $(CSC_FLAGS) -s $< -O2 -d0 -I $*/ -o $@
        @echo "\t-> $@"
        @echo ""

%.so %.import.scm : %.scm
        $(CSC) $(CSC_FLAGS) -s -O2 -d1 $^ -j $* -I $*/ -o $*.so
        @echo "\t-> $*.so"
        @echo "\t-> $*.import.scm"
        @echo ""


%.o : %.scm
        $(CSC) $(CSC_FLAGS) -c -O2 -d1 $@.scm -unit $@ -j $@

% : %.scm
        $(CSC) $(CSC_FLAGS) $<

dependency generation for appications inside .app folders added by andyjpb on Mon Feb 24 15:38:07 2014

If anything in the.app/* changes, then rebuild the app:

APPS=$(wildcard *.app)
APPS_DEPS=$(patsubst %,%.dep,$(APPS))

%.dep: %/
        echo "vpath $*.scm $*" > $@
        find $* -type f -print0 | sed -e 's/ /\\ /g' | xargs -0 echo "$*.import.so: " >> $@
        find $* -type f -print0 | sed -e 's/ /\\ /g' | xargs -0 echo "$*.so: " >> $@

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Name of the most used CHICKEN HTTP server implementation:
Visually impaired? Let me spell it for you (wav file) download WAV