[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: auto-detecting platform in Makefile
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 1 Aug 2018 05:58:13 -0300
Here is a Makefile for Lua 5.3 that detects the platform using name [1].
Place it in src/ and do "make clean guess" to try it.
I've tested it in Linux and macOS but I don't have access to other
platforms. Perhaps some of you do. In particular, I don't know whether
FreeBSD, NetBSD, OpenBSD are all the same.
All contributions welcome. Thanks.
--lhf
[1] https://en.wikipedia.org/wiki/Uname
Attachment:
Makefile
Description: Binary data