# -*- Makefile -*-

# fts subproject
fts.install = no
fts.dir = examples/fts
fts.deps = bigarray
fts.subproject_deps = ctypes ctypes-foreign-base ctypes-foreign-unthreaded
fts: PROJECT=fts
fts: $$(NATIVE_TARGET)

# date subproject
date.install = no
date.dir = examples/date
date.subproject_deps = ctypes ctypes-foreign-base ctypes-foreign-unthreaded
date.deps = bigarray
date: PROJECT=date
date: $$(NATIVE_TARGET)

# ncurses subproject
ncurses.install = no
ncurses.dir = examples/ncurses
ncurses.subproject_deps = ctypes ctypes-foreign-base ctypes-foreign-unthreaded
ncurses.deps = bigarray
ncurses.link_flags = -Wl,-no-as-needed -lncurses
ncurses: PROJECT=ncurses
ncurses: $$(NATIVE_TARGET)

examples: build ncurses fts date
