1 CC ?= aarch64-apple-darwin-clang
2 STRIP ?= aarch64-apple-darwin-strip
4 CFLAGS ?= -arch arm64 -isysroot /home/cameron/Documents/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=13.0
7 MEMO_SUB_PREFIX ?= /usr
15 ../libutil/pw_util.c \
21 install: install-chpass
23 chpass: $(SRC:%.c=%.o) ../ent.xml
24 $(CC) $(LDFLAGS) -o $@ -lcrypt $(SRC:%.c=%.o)
26 $(LDID) -S../ent.xml $@
29 $(CC) $(CFLAGS) -c -o $@ $< -I. -I../libutil -I../libc/gen
31 install-chpass: chpass chpass.1
32 install -d $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin \
33 $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/man/man1
34 install -m4555 chpass $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin/chpass
35 ln -sf chpass $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin/chfn
36 ln -sf chpass $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin/chsh
37 install -Dm644 chpass.1 $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/man/man1/chpass.1
38 ln -sf chpass.1 $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/man/man1/chfn.1
39 ln -sf chpass.1 $(DESTDIR)/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/share/man/man1/chsh.1
42 rm -f chpass $(SRC:%.c=%.o)
44 .PHONY: all install install-chpass clean