14 BINDIR ?= $(PREFIX)/bin
15 MANDIR ?= $(PREFIX)/share/man
17 SRC := $(wildcard *.c) $(wildcard *.cpp)
18 LIBS ?= -lcrypto -lplist-2.0
23 $(CC) -c $(CFLAGS) -I. $< -o $@
26 $(CXX) -c -std=c++11 $(CXXFLAGS) -I. -DLDID_VERSION=\"$(VERSION)\" $< -o $@
29 $(CXX) $^ $(LDFLAGS) $(LIBS) -o ldid
32 $(INSTALL) -D -m755 ldid $(DESTDIR)$(BINDIR)/ldid
33 $(LN) -sf ldid $(DESTDIR)$(BINDIR)/ldid2
34 $(INSTALL) -D -m644 docs/ldid.1 $(DESTDIR)$(MANDIR)/man1/ldid.1
35 $(INSTALL) -D -m644 docs/ldid.1.zh_TW $(DESTDIR)$(MANDIR)/zh_TW/man1/ldid.1
40 .PHONY: all clean install