From 7499b422e3f07bf25704cbf7989e845f89697fa8 Mon Sep 17 00:00:00 2001 From: Oscar Lim Date: Sun, 24 Jan 2016 22:53:37 -0800 Subject: Support for gettime and sleep functions Provide `gettime` and `sleep` functions with at least 1 millisecond resolution. --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d83c2a --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +# busted_time makefile +# +# see csrc/makefile for description of how to customize the build +# +# Targets: +# install install system independent support +# install-all install for lua51 lua52 lua53 +# print print the build settings + +PLAT?= linux +PLATS= macosx linux win32 mingw freebsd + +all: $(PLAT) + +$(PLATS) none install local clean: + $(MAKE) -C src $@ + +print: + $(MAKE) -C src $@ + +install-all: + $(MAKE) clean + @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.1 + @cd src && $(MAKE) install LUA_VERSION=5.1 + $(MAKE) clean + @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.2 + @cd src && $(MAKE) install LUA_VERSION=5.2 + $(MAKE) clean + @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.3 + @cd src && $(MAKE) install LUA_VERSION=5.3 + +.PHONY: test -- cgit v1.2.3-55-g6feb