--- /dev/null
+CC ?= aarch64-apple-darwin-clang
+STRIP ?= aarch64-apple-darwin-strip
+LDID ?= ldid
+CFLAGS ?= -arch arm64 -isysroot /home/cameron/Documents/SDK/iPhoneOS14.3.sdk -miphoneos-version-min=13.0
+GINSTALL ?= install
+PREFIX ?= /usr
+DESTDIR ?=
+
+SRC := getent.c getutxent.c
+
+all: getent
+
+install: install-getent
+
+copy-headers:
+ cp -af $(MACOSX_SYSROOT)/usr/include/netinet include/
+ cp -af $(MACOSX_SYSROOT)/usr/include/net include/
+
+getent: $(SRC) ent.xml copy-headers
+ $(CC) $(CFLAGS) -o getent -Iinclude $(SRC)
+ $(STRIP) getent
+ $(LDID) -Sent.xml getent
+
+install-getent: getent getent.1
+ $(GINSTALL) -Dm755 getent $(DESTDIR)/$(PREFIX)/bin/getent
+ $(GINSTALL) -Dm644 getent.1 $(DESTDIR)/$(PREFIX)/share/man/man1/getent.1
+
+clean:
+ rm -f getent
+
+.PHONY: all install install-getent clean copy-headers
+++ /dev/null
-# $FreeBSD$
-# Autogenerated - do NOT edit!
-
-DIRDEPS = \
- gnu/lib/csu \
- include \
- include/arpa \
- include/rpc \
- include/xlocale \
- lib/${CSU_DIR} \
- lib/libc \
- lib/libcompiler_rt \
-
-
-.include <dirdeps.mk>
-
-.if ${DEP_RELDIR} == ${_DEP_RELDIR}
-# local dependencies - needed for -jN in clean tree
-.endif
--- /dev/null
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>platform-application</key>
+ <true/>
+ <key>com.apple.private.security.no-container</key>
+ <true/>
+ <key>com.apple.private.skip-library-validation</key>
+ <true/>
+</dict>
+</plist>