9 CXXFLAGS ?= $(CFLAGS) -std=c++11
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) $(CPPFLAGS) -I. $< -o $@
26 $(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -I. -DLDID_VERSION=\"$(VERSION)\" $< -o $@
29 $(CXX) $(CXXFLAGS) -o ldid $^ $(LDFLAGS) $(LIBS)
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