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
9 SRC := getent.c getutxent.c
13 install: install-getent
16 cp -af $(MACOSX_SYSROOT)/usr/include/netinet include/
17 cp -af $(MACOSX_SYSROOT)/usr/include/net include/
19 getent: $(SRC) ent.xml copy-headers
20 $(CC) $(CFLAGS) -o getent -Iinclude $(SRC)
22 $(LDID) -Sent.xml getent
24 install-getent: getent getent.1
25 $(GINSTALL) -Dm755 getent $(DESTDIR)/$(PREFIX)/bin/getent
26 $(GINSTALL) -Dm644 getent.1 $(DESTDIR)/$(PREFIX)/share/man/man1/getent.1
31 .PHONY: all install install-getent clean copy-headers