moonbridge

view Makefile @ 3:3b3f0ecc4ac4

Lua 5.3 (rc4) compatibility; Code cleanup for Lua 5.3
author jbe
date Thu Jan 08 20:55:56 2015 +0100 (2015-01-08)
parents f6d3b3f70dab
children 32e0838d16e6
line source
1 # BSD Makefile
2 # On GNU systems, use bmake.
4 .if $(:!uname!) == "FreeBSD"
5 # Default configuration for FreeBSD
6 LUA_INCLUDE ?= /usr/local/include/lua52
7 LUA_LIBDIR ?= /usr/local/lib
8 LUA_LIBRARY ?= lua-5.2
9 UTIL_FLAGS ?= -lutil
11 .elif $(:!uname!) == "Linux"
12 # Default configuration for Linux
13 LUA_INCLUDE ?= /usr/include
14 LUA_LIBDIR ?= /usr/lib
15 LUA_LIBRARY ?= lua
16 UTIL_FLAGS ?= -ldl -lbsd
18 .else
19 # Default configuration for other systems
20 LUA_INCLUDE ?= /usr/include
21 LUA_LIBDIR ?= /usr/lib
22 LUA_LIBRARY ?= lua
23 UTIL_FLAGS ?= -lutil
25 .endif
27 all:: moonbridge
29 moonbridge: moonbridge.c
30 cc -Wall -O2 -Wl,-E -I $(LUA_INCLUDE) -L $(LUA_LIBDIR) -o moonbridge moonbridge.c -lm -l$(LUA_LIBRARY) $(UTIL_FLAGS)
32 clean::
33 rm -f moonbridge

Impressum / About Us