summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOscar Lim <olim@ucla.edu>2016-05-07 14:37:25 -0700
committerOscar Lim <olim@ucla.edu>2016-05-08 16:01:40 -0700
commit8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701 (patch)
tree9624af38c4ba35de244da2281e08049589140e20 /Makefile
parent040d7066649ddfcb72424b1cb70d6ad00ea84a21 (diff)
downloadluasystem-8c1a0fca53bf11f2b7ce708c8c5bdb05e5a55701.zip
Support for monotime
Provide `monotime` function with at least 1 millisecond resolution.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4d83c2a..4f4d685 100644
--- a/Makefile
+++ b/Makefile
@@ -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