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.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 @@ # install-all install for lua51 lua52 lua53 # print print the build settings +ifeq ($(origin PLAT),undefined) +UNAME_S:=$(shell uname -s) +ifeq ($(UNAME_S),Linux) + PLAT=linux +endif +ifeq ($(UNAME_S),Darwin) + PLAT=macosx +endif +ifeq ($(UNAME_S),FreeBSD) + PLAT=freebsd +endif +ifeq ($(patsubst MINGW%,MINGW,$(UNAME_S)),MINGW) + PLAT=mingw +endif +endif PLAT?= linux PLATS= macosx linux win32 mingw freebsd |