~mdw
/
fringe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
smalltalk: Abstract out the common iteration protocol into a superclass.
[fringe]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
8ea4f74
..
119a8ff
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-13,6
+13,7
@@
.SUFFIXES: .o
LANGS =
.SUFFIXES: .o
LANGS =
+SOURCES =
TARGETS = $(patsubst %,%-fringe,$(LANGS))
CLEANFILES = $(TARGETS)
TARGETS = $(patsubst %,%-fringe,$(LANGS))
CLEANFILES = $(TARGETS)
@@
-46,6
+47,12
@@
test:: all
fi
###--------------------------------------------------------------------------
fi
###--------------------------------------------------------------------------
+### Reporting.
+
+report::
+ wc -l $(SOURCES) | sort -n
+
+###--------------------------------------------------------------------------
### C.
CC = gcc
### C.
CC = gcc
@@
-55,6
+62,7
@@
CLEANFILES += *.o
.c.o:; $(CC) -c $(CFLAGS) -o $@ $<
LANGS += c
.c.o:; $(CC) -c $(CFLAGS) -o $@ $<
LANGS += c
+SOURCES += c-fringe.c
c-fringe: c-fringe.o
$(CC) -o $@ $^
c-fringe: c-fringe.o
$(CC) -o $@ $^
@@
-68,6
+76,7
@@
CLEANFILES += *.hi *.hc
.hs.o:; $(HC) -c $(HFLAGS) -o $@ $<
LANGS += haskell
.hs.o:; $(HC) -c $(HFLAGS) -o $@ $<
LANGS += haskell
+SOURCES += haskell-fringe.hs
haskell-fringe: haskell-fringe.o
$(HC) -o $@ $^
haskell-fringe: haskell-fringe.o
$(HC) -o $@ $^
@@
-78,15
+87,20
@@
ICONT = icont
IFLAGS = -u -fa
LANGS += icon
IFLAGS = -u -fa
LANGS += icon
+SOURCES += icon-fringe.icn
icon-fringe: icon-fringe.icn
$(ICONT) -o $@ $^
###--------------------------------------------------------------------------
### Common Lisp.
icon-fringe: icon-fringe.icn
$(ICONT) -o $@ $^
###--------------------------------------------------------------------------
### Common Lisp.
+CLEANFILES += *.core
+
LANGS += cl
LANGS += cl
+SOURCES += cl-fringe.lisp
cl-fringe: cl-fringe.lisp
cl-fringe: cl-fringe.lisp
- cl-launch -R -o $@ -f `pwd`/$^
+## cl-launch -R -o $@ -f `pwd`/$^ -- slow to start
+ cl-launch -o $@ -f `pwd`/$^ +I -r launch -d $@.core
###--------------------------------------------------------------------------
### F#.
###--------------------------------------------------------------------------
### F#.
@@
-97,6
+111,7
@@
CLEANFILES += *.exe
.fs.exe:; fsc -o $@ $<
LANGS += f\#
.fs.exe:; fsc -o $@ $<
LANGS += f\#
+SOURCES += f\#-fringe.fs
f\#-fringe: f\#-fringe.exe
chmod +x $<
cp $< $@
f\#-fringe: f\#-fringe.exe
chmod +x $<
cp $< $@
@@
-106,10
+121,11
@@
f\#-fringe: f\#-fringe.exe
SCMC = csc
SCMFLAGS = -c -O2
SCMC = csc
SCMFLAGS = -c -O2
-.SUFFIXES: .scm
.o
+.SUFFIXES: .scm
.scm.o:; $(SCMC) $(SCMFLAGS) -o $@ $<
LANGS += scheme
.scm.o:; $(SCMC) $(SCMFLAGS) -o $@ $<
LANGS += scheme
+SOURCES += scheme-fringe.scm
scheme-fringe: scheme-fringe.o
$(SCMC) -o $@ $^
scheme-fringe: scheme-fringe.o
$(SCMC) -o $@ $^
@@
-118,6
+134,7
@@
scheme-fringe: scheme-fringe.o
LANGS += smalltalk
TARGETS += smalltalk-fringe.im
LANGS += smalltalk
TARGETS += smalltalk-fringe.im
+SOURCES += smalltalk-fringe.st
smalltalk-fringe.im: smalltalk-fringe.st
echo "ObjectMemory snapshot: '$@.new'" | gst $^ -
mv $@.new $@
smalltalk-fringe.im: smalltalk-fringe.st
echo "ObjectMemory snapshot: '$@.new'" | gst $^ -
mv $@.new $@