SRCDIR = $(realpath .)
TOPDIR = $(realpath $(SRCDIR)/../..)

include $(TOPDIR)/Make.defaults

ccldflags += -L$(TOPDIR)/src/ -Wl,-rpath=$(TOPDIR)/src/
LIBS=efivar

all : tester

install :

clean :
	@rm -rfv tester *.o *.E *.S

test : tester
	./tester

tester :: tester.o
	$(CC) $(cflags) $(LDFLAGS) -Wl,-rpath,$(TOPDIR)/src -L$(TOPDIR)/src -o $@ $^ -lefivar -ldl

.PHONY: all clean install test

include $(TOPDIR)/Make.rules
