go-fringe.go: Remove all of the `;' statement terminators.
[fringe] / Makefile
index 4f41be2..79af754 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -109,21 +109,21 @@ icon-fringe: icon-fringe.icn
 
 CLEANFILES             += *.core *.fasl
 
+SBCL_BUILD              = ./sbcl-build
+
 .SUFFIXES: .lisp .fasl
 .lisp.fasl:
-       $(call v_echo,CL)sbcl --noinform --eval \
-               '(quit :unix-status (if (compile-file "$<" :verbose nil :print nil) 0 1))'
+       $(call v_echo,CL)$(SBCL_BUILD) build $<
 
 LANGS                  += cl
 SOURCES                        += cl-fringe.lisp
 cl-fringe: cl-fringe.fasl
-       $(call v_echo,CP)cp $< $@.new && chmod +x $@.new && mv $@.new $@
-##     $(call v_echo,CL)cl-launch -o $@ -f `pwd`/$^ +I -r launch -d $@.core
+       $(call v_echo,CLLD)$(SBCL_BUILD) link $@ $^
 
 ###--------------------------------------------------------------------------
 ### F#.
 
-FSC                     = fsc
+FSC                     = fsharpc
 FSCFLAGS                =
 CLEANFILES             += *.exe
 .SUFFIXES: .fs .exe
@@ -138,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 $@ $<
 
@@ -150,17 +150,11 @@ scheme-fringe: scheme-fringe.o
 ###--------------------------------------------------------------------------
 ### Go.
 
-GOOBJ                   = 8
-GOC                     = $(GOOBJ)g
-GOLINK                  = $(GOOBJ)l
-CLEANFILES             += *.$(GOOBJ)
-.SUFFIXES: .$(GOOBJ) .go
-.go.$(GOOBJ):; $(call v_echo,GOC)$(GOC) $(GOFLAGS) $<
-
+GOBUILD                         = go build
 LANGS                  += go
 SOURCES                        += go-fringe.go
-go-fringe: go-fringe.$(GOOBJ)
-       $(call v_echo,GOLD)$(GOLINK) -o $@ $^
+go-fringe: go-fringe.go
+       $(call v_echo,GO)$(GOBUILD) -o $@ $^
 
 ###--------------------------------------------------------------------------
 ### Smalltalk.
@@ -195,15 +189,41 @@ CLEANFILES                += *.beam erl_crash.dump
 .SUFFIXES: .erl .beam
 .erl.beam:; $(call v_echo,ERLC)$(ERLC) $(ERLCFLAGS) $<
 
-LANGS                  += erl
-TARGETS                        += erl-fringe.beam
-SOURCES                        += erl-fringe.erl
-erl-fringe:
+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 erl-fringe main -extra "$$@"'; \
+         echo 'exec erl -pa . -noshell -run erlang-fringe main -extra "$$@"'; \
        } >$@.new
        $(V_HIDE)chmod +x $@.new && mv $@.new $@
 
+###--------------------------------------------------------------------------
+### Algol 68.
+
+A68G                    = /usr/local/bin/a68g
+
+LANGS                  += algol68
+TARGETS                        += algol68-fringe
+SOURCES                        += algol68-fringe.a68
+
+algol68-fringe: algol68-fringe.a68
+       $(call v_echo,A68)$(A68G) --compile -O2 $< && mv $@.sh $@
+
+###--------------------------------------------------------------------------
+### 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)