diff options
| author | Oscar Lim <olim@ucla.edu> | 2016-01-24 22:53:37 -0800 |
|---|---|---|
| committer | Oscar Lim <olim@ucla.edu> | 2016-02-10 23:45:49 -0800 |
| commit | 7499b422e3f07bf25704cbf7989e845f89697fa8 (patch) | |
| tree | 524d8a262a9d61486b858e70c64f8aedbda43095 /Makefile | |
| download | luasystem-7499b422e3f07bf25704cbf7989e845f89697fa8.tar.gz luasystem-7499b422e3f07bf25704cbf7989e845f89697fa8.tar.bz2 luasystem-7499b422e3f07bf25704cbf7989e845f89697fa8.zip | |
Support for gettime and sleep functions
Provide `gettime` and `sleep` functions with at least 1 millisecond
resolution.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d83c2a --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # busted_time makefile | ||
| 2 | # | ||
| 3 | # see csrc/makefile for description of how to customize the build | ||
| 4 | # | ||
| 5 | # Targets: | ||
| 6 | # install install system independent support | ||
| 7 | # install-all install for lua51 lua52 lua53 | ||
| 8 | # print print the build settings | ||
| 9 | |||
| 10 | PLAT?= linux | ||
| 11 | PLATS= macosx linux win32 mingw freebsd | ||
| 12 | |||
| 13 | all: $(PLAT) | ||
| 14 | |||
| 15 | $(PLATS) none install local clean: | ||
| 16 | $(MAKE) -C src $@ | ||
| 17 | |||
| 18 | print: | ||
| 19 | $(MAKE) -C src $@ | ||
| 20 | |||
| 21 | install-all: | ||
| 22 | $(MAKE) clean | ||
| 23 | @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.1 | ||
| 24 | @cd src && $(MAKE) install LUA_VERSION=5.1 | ||
| 25 | $(MAKE) clean | ||
| 26 | @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.2 | ||
| 27 | @cd src && $(MAKE) install LUA_VERSION=5.2 | ||
| 28 | $(MAKE) clean | ||
| 29 | @cd src && $(MAKE) $(PLAT) LUA_VERSION=5.3 | ||
| 30 | @cd src && $(MAKE) install LUA_VERSION=5.3 | ||
| 31 | |||
| 32 | .PHONY: test | ||
