moonbridge

view Makefile @ 10:7e6faff049c3

Removed request.url; String in request.path does not contain a leading slash anymore; Stricter parsing of request targets
author jbe
date Thu Jan 29 16:07:56 2015 +0100 (2015-01-29)
parents 757902555204
children bf7d3921872d
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 .ifdef MOONBR_LUA_PATH
28 MOONBR_LUA_PATH_DEFINE = "-DMOONBR_LUA_PATH=\"$(MOONBR_LUA_PATH)\""
29 .endif
31 .ifdef MOONBR_LUA_CPATH
32 MOONBR_LUA_CPATH_DEFINE = "-DMOONBR_LUA_CPATH=\"$(MOONBR_LUA_CPATH)\""
33 .endif
35 all:: moonbridge
37 moonbridge: moonbridge.c
38 cc -Wall -O2 -Wl,-E -I $(LUA_INCLUDE) -L $(LUA_LIBDIR) -o moonbridge $(MOONBR_LUA_PATH_DEFINE) $(MOONBR_LUA_CPATH_DEFINE) moonbridge.c -lm -l$(LUA_LIBRARY) $(UTIL_FLAGS)
40 clean::
41 rm -f moonbridge

Impressum / About Us