shithub: MicroHs

Download patch

ref: caace13b6c9ebc362a00193f511dc6b9ea77a2e2
parent: 6009f50713b9865761e48bbe6f31f3dba5d231ef
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Mon Nov 20 07:56:19 EST 2023

New handy targets

--- a/Makefile
+++ b/Makefile
@@ -18,9 +18,13 @@
 GHCPROF= # -prof -fprof-late #-prof -fprof-auto
 GHCFLAGS= $(GHCEXTS) $(GHCINCS) $(GHCWARNS) $(GHCOPTS) $(GHCTOOL) $(GHCPKGS) $(GHCOUT) $(GHCPROF)
 #
-.PHONY:	clean bootstrap install ghcgen
+.PHONY:	clean bootstrap install ghcgen newmhs
 
 all:	bin/gmhs
+
+newmhs:	ghcgen
+	$(CCEVAL) generated/mhs.c -o bin/mhs
+	$(CC) $(CCWARNS) -g src/runtime/eval.c $(CCLIBS) generated/mhs.c -o bin/mhsgdb
 
 # Compile mhs from distribution, with C compiler
 bin/mhs:	src/runtime/eval.c src/runtime/config*.h #generated/mhs.c
--