9 CXXFLAGS ?= $(CFLAGS) -std=c++11
14 BINDIR ?= $(PREFIX)/bin
15 MANDIR ?= $(PREFIX)/share/man
18 LIBS ?= -lcrypto -lplist-2.0
20 MANPAGE_LANGS := zh_TW zh_CN
25 $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -I. -DLDID_VERSION=\"$(VERSION)\" $< -o $@
28 $(CXX) $(CXXFLAGS) -o ldid $^ $(LDFLAGS) $(LIBS)
31 $(INSTALL) -d $(DESTDIR)$(BINDIR)/
32 $(INSTALL) -m755 ldid $(DESTDIR)$(BINDIR)/ldid
33 $(LN) -sf ldid $(DESTDIR)$(BINDIR)/ldid2
34 $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1/
35 $(INSTALL) -m644 docs/ldid.1 $(DESTDIR)$(MANDIR)/man1/ldid.1
36 for lang in $(MANPAGE_LANGS); do \
37 $(INSTALL) -d $(DESTDIR)$(MANDIR)/$$lang/man1/; \
38 $(INSTALL) -m644 docs/ldid.$$lang.1 $(DESTDIR)$(MANDIR)/$$lang/man1/ldid.1; \
44 .PHONY: all clean install