diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-08 16:42:03 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-03-08 16:51:15 +0100 |
commit | 3e2d86693f6e8920c97fe296491e7741e31f922c (patch) | |
tree | 1c755422fd27c7f192243e8eb7f7811193efa1f6 /server/Makefile | |
parent | e0cabd6295204fe8a6b54edfc9141302943fdbfb (diff) | |
download | privsep-master.tar.bz2 privsep-master.tar.xz |
This allows you load various modules into a server lua state and give
a performance boost when calling the privileged functions
Diffstat (limited to 'server/Makefile')
-rw-r--r-- | server/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/server/Makefile b/server/Makefile new file mode 100644 index 0000000..0f14b48 --- /dev/null +++ b/server/Makefile @@ -0,0 +1,25 @@ + +COMPILE_PROG = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $($@-objs) $($@-libs) +COMPILE_LUALIB = $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $($@-objs) $($@-libs) + +CFLAGS ?= -g + +PKGCONF ?= pkg-config + +LUA_PKG ?= lua +LUA_CFLAGS := $(shell $(PKGCONF) --cflags $(LUA_PKG)) +LUA_LIBS := $(shell $(PKGCONF) --libs $(LUA_PKG)) + +LIBEV_LIBS := -lev + +privsep-server-objs = privsep-server.o lua-privsep.o conn.o +privsep-server-libs = $(LUA_LIBS) $(LIBEV_LIBS) + +all: privsep-server + +privsep-server: $(privsep-server-objs) + $(COMPILE_PROG) + +clean: + rm -f $(privsep-server-objs) privsep-server + |