moonbridge

changeset 16:bf7d3921872d

Added default makefile configuration for Ubuntu distribution
author jbe
date Thu Jan 29 20:34:12 2015 +0100 (2015-01-29)
parents 1fc0142c32e4
children 78694b82078f
files Makefile
line diff
     1.1 --- a/Makefile	Thu Jan 29 20:00:39 2015 +0100
     1.2 +++ b/Makefile	Thu Jan 29 20:34:12 2015 +0100
     1.3 @@ -9,11 +9,21 @@
     1.4  UTIL_FLAGS  ?= -lutil
     1.5  
     1.6  .elif $(:!uname!) == "Linux"
     1.7 -# Default configuration for Linux
     1.8 +# Distinguish between different Linux distributions
     1.9 +DISTRIB_ID != grep ^DISTRIB_ID= /etc/lsb-release | sed -E 's/.*= *"?([^"]*)"?/\1/'
    1.10 +.if $(DISTRIB_ID) == "Ubuntu"
    1.11 +# Default configuration for Ubuntu
    1.12 +LUA_INCLUDE ?= /usr/include/lua5.2
    1.13 +LUA_LIBDIR  ?= /usr/lib/x86_64-linux-gnu
    1.14 +LUA_LIBRARY ?= lua5.2
    1.15 +UTIL_FLAGS  ?= -ldl -lbsd
    1.16 +.else
    1.17 +# Default configuration for other Linux distributions
    1.18  LUA_INCLUDE ?= /usr/include
    1.19  LUA_LIBDIR  ?= /usr/lib
    1.20  LUA_LIBRARY ?= lua
    1.21  UTIL_FLAGS  ?= -ldl -lbsd
    1.22 +.endif
    1.23  
    1.24  .else
    1.25  # Default configuration for other systems

Impressum / About Us