mescc: Add brk, naive malloc.
[mes.git] / GNUmakefile
index df0fa53188f13fcd7ef1c3bf9dce85e61d09a593..9e648250d2c19745fd8e876f06ab5ebb152d412c 100644 (file)
@@ -172,6 +172,15 @@ guile-m: scaffold/m.c
        guile/mescc.scm $< > $@ || rm -f $@
        chmod +x $@
 
+malloc: scaffold/malloc.c GNUmakefile
+       rm -f $@
+       gcc -nostdlib -I. --std=gnu99 -m32 -g -o $@ '-DVERSION="0.4"' $<
+       chmod +x $@
+
+guile-malloc: scaffold/malloc.c
+       guile/mescc.scm $< > $@ || rm -f $@
+       chmod +x $@
+
 micro-mes: scaffold/micro-mes.c GNUmakefile
        rm -f $@
        gcc -nostdlib -I. --std=gnu99 -m32 -o $@ '-DVERSION="0.4"' $<