2 OBJS += append.o create.o info.o remove.o
3 OBJS += machoparse/cdhash.o cache_from_tree.o sort.o
4 OBJS += uuid/gen_uuid.o uuid/pack.o uuid/unpack.o uuid/parse.o uuid/unparse.o uuid/copy.o
5 OBJS += compat_strtonum.o
9 BINDIR ?= $(DESTDIR)$(PREFIX)/bin
10 MANDIR ?= $(DESTDIR)$(PREFIX)/share/man
12 ifeq ($(shell uname -s),Darwin)
16 ifeq ($(COMMONCRYPTO),1)
17 CFLAGS += -DCOMMONCRYPTO
24 install: trustcache trustcache.1
26 install -m 755 trustcache $(BINDIR)/
27 install -d $(MANDIR)/man1/
28 install -m 644 trustcache.1 $(MANDIR)/man1/
31 rm -i $(BINDIR)/trustcache $(MANDIR)/man1/trustcache.1
34 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
36 README.txt: trustcache.1
37 mandoc $^ | col -bx > $@
40 rm -f trustcache $(OBJS)
42 .PHONY: all clean install uninstall