BINDIR = {PACKAGEPREFIX}{BINDIR}
MANDIR = {PACKAGEPREFIX}{MANDIR}
UADE123NAME={UADE123NAME}

CC = {CC}
CFLAGS = -Wall -O2 -pthread -I../../include -I../common `pkg-config fuse --cflags` -DUADENAME=\"{BINDIR}/{UADE123NAME}\" {DEBUGFLAGS} {ARCHFLAGS}
CLIBS = {ARCHLIBS} `pkg-config fuse --libs` -lm

all:	uadefs

include ../common/Makefile.common

MODULES = uadefs.o $(COMMONMODULES)

%.o:	%.c
	$(CC) $(CFLAGS) -c $<

uadefs:	$(MODULES)
	$(CC) $(CFLAGS) -o $@ $(MODULES) $(CLIBS)

uadefs.o:	uadefs.c

install:	uadefs
	mkdir -p "$(BINDIR)" "$(MANDIR)"
	install uadefs "$(BINDIR)"/
	install uadefs.1 "$(MANDIR)"/

clean:	
	rm -f uadefs *.o

