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
8 BINDIR ?= $(PREFIX)/bin
9 MANDIR ?= $(PREFIX)/share/man
11 ifeq ($(shell uname -s),Darwin)
15 ifeq ($(COMMONCRYPTO),1)
16 CFLAGS += -DCOMMONCRYPTO
25 install -m 755 tc $(BINDIR)/
26 install -d $(MANDIR)/man1/
27 install -m 644 tc.1 $(MANDIR)/man1/
30 rm -i $(BINDIR)/tc $(MANDIR)/man1/tc.1
33 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
36 mandoc $^ | col -bx > $@
41 .PHONY: all clean install uninstall