| 1 | ## Copyright (C) 2022 Matthew Fluet |
| 2 | # Copyright (C) 2003-2006 Henry Cejtin, Matthew Fluet, Suresh |
| 3 | # Jagannathan, and Stephen Weeks. |
| 4 | # |
| 5 | # MLton is released under a HPND-style license. |
| 6 | # See the file MLton-LICENSE for details. |
| 7 | ## |
| 8 | |
| 9 | ROOT := ../../.. |
| 10 | include $(ROOT)/Makefile.config |
| 11 | |
| 12 | ###################################################################### |
| 13 | |
| 14 | PATH := $(BIN):$(shell echo $$PATH) |
| 15 | mlton := mlton -default-ann 'allowFFI true' |
| 16 | |
| 17 | all: test |
| 18 | |
| 19 | .PHONY: test |
| 20 | test: finalizable |
| 21 | ./finalizable |
| 22 | |
| 23 | finalizable: finalizable.sml cons.c |
| 24 | $(mlton) finalizable.sml cons.c |
| 25 | |
| 26 | |
| 27 | $(eval $(MK_COMMON_GOALS)) |