diff options
author | Oscar Lim <olim@ucla.edu> | 2016-05-07 14:37:25 -0700 |
---|---|---|
committer | Oscar Lim <olim@ucla.edu> | 2016-05-08 16:01:40 -0700 |
commit | 8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701 (patch) | |
tree | 9624af38c4ba35de244da2281e08049589140e20 /Makefile | |
parent | 040d7066649ddfcb72424b1cb70d6ad00ea84a21 (diff) | |
download | luasystem-8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701.tar.gz luasystem-8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701.tar.bz2 luasystem-8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701.zip |
Support for monotime
Provide `monotime` function with at least 1 millisecond resolution.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -7,6 +7,21 @@ | |||
7 | # install-all install for lua51 lua52 lua53 | 7 | # install-all install for lua51 lua52 lua53 |
8 | # print print the build settings | 8 | # print print the build settings |
9 | 9 | ||
10 | ifeq ($(origin PLAT),undefined) | ||
11 | UNAME_S:=$(shell uname -s) | ||
12 | ifeq ($(UNAME_S),Linux) | ||
13 | PLAT=linux | ||
14 | endif | ||
15 | ifeq ($(UNAME_S),Darwin) | ||
16 | PLAT=macosx | ||
17 | endif | ||
18 | ifeq ($(UNAME_S),FreeBSD) | ||
19 | PLAT=freebsd | ||
20 | endif | ||
21 | ifeq ($(patsubst MINGW%,MINGW,$(UNAME_S)),MINGW) | ||
22 | PLAT=mingw | ||
23 | endif | ||
24 | endif | ||
10 | PLAT?= linux | 25 | PLAT?= linux |
11 | PLATS= macosx linux win32 mingw freebsd | 26 | PLATS= macosx linux win32 mingw freebsd |
12 | 27 | ||