support Wine builds of sb-bsd-sockets
[sbcl.git] / contrib / vanilla-module.mk
blob01396f8e5a50a9a4c4cc8ffc121f8efbebc1063d
1 DEST=$(SBCL_PWD)/obj/sbcl-home/contrib/
2 FASL=$(DEST)/$(MODULE).fasl
3 ASD=$(DEST)/$(MODULE).asd
5 fasl:: $(FASL)
6 $(FASL):: $(MODULE).lisp ../../output/sbcl.core
7 $(SBCL) --eval '(compile-file (format nil "SYS:CONTRIB;~:@(~A~);~:@(~A~).LISP" "$(MODULE)" "$(MODULE)") :output-file (parse-native-namestring "$@"))' </dev/null
9 $(ASD)::
10 echo "(defsystem :$(MODULE) :class require-system)" > $@
12 test:: $(FASL) $(ASD)
14 install:
15 cp $(FASL) $(ASD) "$(BUILD_ROOT)$(INSTALL_DIR)"