summaryrefslogtreecommitdiffstats
path: root/bin/Makefile
blob: e0e03cb407c9f22efca766268d9060201be3ac95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

COMPILE_PROG = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $($@_objs) $($@_libs)


PKGCONF ?= pkg-config

LUA_PKG ?= lua
LUA_CFLAGS := $(shell $(PKGCONF) --cflags $(LUA_PKG))
LUA_LIBS := $(shell $(PKGCONF) --libs $(LUA_PKG))

lua-privsep_objs = lua-privsep.o
lua-privsep_libs = $(LUA_LIBS)

lua-privsep: $(lua-privsep_objs)
	$(COMPILE_PROG)