X-Git-Url: https://git.distorted.org.uk/~mdw/fringe/blobdiff_plain/43aab76ca374d0a87743b33f71aeb03e373d5f1d..f6006dc5e1018143a819e480bc8d67786599c57a:/Makefile diff --git a/Makefile b/Makefile index 11e3da6..b4539ba 100644 --- a/Makefile +++ b/Makefile @@ -97,12 +97,12 @@ haskell-fringe: haskell-fringe.o ### Icon. ICONT = icont -IFLAGS = -u -fa +IFLAGS = -u -s -fa LANGS += icon SOURCES += icon-fringe.icn icon-fringe: icon-fringe.icn - $(call v_echo,ICONT)$(ICONT) -o $@ $^ + $(call v_echo,ICONT)$(ICONT) $(IFLAGS) -o $@ $^ ###-------------------------------------------------------------------------- ### Common Lisp. @@ -111,8 +111,8 @@ CLEANFILES += *.core *.fasl .SUFFIXES: .lisp .fasl .lisp.fasl: - $(call v_echo,CL)sbcl --eval \ - '(quit :unix-status (if (compile-file "$<") 0 1))' + $(call v_echo,CL)sbcl --noinform --eval \ + '(quit :unix-status (if (compile-file "$<" :verbose nil :print nil) 0 1))' LANGS += cl SOURCES += cl-fringe.lisp @@ -123,10 +123,11 @@ cl-fringe: cl-fringe.fasl ###-------------------------------------------------------------------------- ### F#. -FSC = fsc +FSC = fsharpc +FSCFLAGS = CLEANFILES += *.exe .SUFFIXES: .fs .exe -.fs.exe:; $(call v_echo,FSC)$(FSC) -o $@ $< +.fs.exe:; $(call v_echo,FSC)$(FSC) --nologo $(FSCFLAGS) -o $@ $< LANGS += f\# SOURCES += f\#-fringe.fs @@ -137,7 +138,7 @@ f\#-fringe: f\#-fringe.exe ### Scheme. SCMC = csc -SCMFLAGS = -c -O2 +SCMFLAGS = -c -O2 .SUFFIXES: .scm .scm.o:; $(call v_echo,SCMC)$(SCMC) $(SCMFLAGS) -o $@ $< @@ -177,6 +178,61 @@ smalltalk-fringe: } >$@.new $(V_HIDE)chmod +x $@.new && mv $@.new $@ +###-------------------------------------------------------------------------- +### Forth. + +LANGS += forth +TARGETS += forth-fringe +SOURCES += forth-fringe.fth +forth-fringe: forth-fringe.fth + $(call v_echo,FORTHI)gforthmi $@ $< + +###-------------------------------------------------------------------------- +### Erlang. + +ERLC = erlc +CLEANFILES += *.beam erl_crash.dump +.SUFFIXES: .erl .beam +.erl.beam:; $(call v_echo,ERLC)$(ERLC) $(ERLCFLAGS) $< + +LANGS += erlang +TARGETS += erlang-fringe.beam +SOURCES += erlang-fringe.erl +erlang-fringe: + $(call v_echo,GENSH){ echo '#! /bin/sh'; \ + echo 'exec erl -pa . -noshell -run erlang-fringe main -extra "$$@"'; \ + } >$@.new + $(V_HIDE)chmod +x $@.new && mv $@.new $@ + +###-------------------------------------------------------------------------- +### Algol 68. + +ALGOL68 = /usr/local/bin/a68g + +LANGS += algol68 +TARGETS += algol68-fringe +SOURCES += algol68-fringe.a68 + +algol68-fringe: algol68-fringe.a68 + $(call v_echo,GENSH){ echo '#! $(ALGOL68) --script'; \ + cat $<; \ + } >$@.new + $(V_HIDE)chmod +x $@.new && mv $@.new $@ + +###-------------------------------------------------------------------------- +### Dylan. + +D2C = d2c +CLEANFILES += dylan-*.c *.mak + +LANGS += dylan +TARGETS += dylan-fringe +SOURCES += dylan-fringe.dylan dylan-fringe-exports.dylan +SOURCES += dylan-fringe.lid + +dylan-fringe: dylan-fringe.lid dylan-fringe.dylan dylan-fringe-exports.dylan + $(call v_echo,D2C)d2c -g $< + ###----- That's all, folks -------------------------------------------------- all:: $(TARGETS)