# vim: ft=make
runtime ?= /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtn.o
all: parsav parsavd

%: %.o
	ld -o $@ $< $(runtime) ${NIX_LDFLAGS} -L. -ljson-c -lpq -lmbedtls -lmbedcrypto -lmongoose -lc
	strip @$

%.o: %.ll
	llc --filetype=obj --relocation-model=pic $<
