jbe/bsw@0: # C compiler command jbe/bsw@0: CC = cc jbe/bsw@0: jbe/bsw@0: # linker command jbe/bsw@0: LD = ld jbe/bsw@0: jbe/bsw@0: # filename extension for shared libraries jbe/bsw@0: SLIB_EXT = so jbe/bsw@0: jbe@116: # Lua binaries jbe@156: LUA_BIN = lua jbe@156: LUAC_BIN = luac jbe@116: jbe/bsw@0: # C compiler flags jbe@42: # TODO: check alternatives to -D_GNU_SOURCE -fPIC jbe@42: # using libtool? jbe@156: CFLAGS = -O2 -D_GNU_SOURCE -fPIC -Wall -I /usr/include -I /usr/local/include -I /usr/local/include/lua52 jbe/bsw@0: jbe/bsw@0: # additional C compiler flags for parts which depend on PostgreSQL jbe@118: CFLAGS_PGSQL = -I /usr/local/include/postgresql -I /usr/local/include/postgresql/server jbe/bsw@0: jbe/bsw@0: # linker flags jbe@118: LDFLAGS = -shared -L /usr/lib -L /usr/local/lib jbe/bsw@0: jbe/bsw@0: # additional linker flags for parts which depend on PostgreSQL jbe@116: LDFLAGS_PGSQL = -L /usr/local/lib/postgresql -rpath /usr/local/lib/postgresql