From 9768b265bd097e561103188bb97f64ef26c6cee1 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Wed, 10 Feb 2021 18:13:31 -0500 Subject: New Makefile, freebsd reallocarray.c, freebsd strtonum for 12/13 compat, delete tests --- pw/Makefile | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'pw/Makefile') diff --git a/pw/Makefile b/pw/Makefile index 8db96d9..2db9f2f 100644 --- a/pw/Makefile +++ b/pw/Makefile @@ -1,18 +1,20 @@ -# $FreeBSD$ +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 +INSTALL ?= install +FAKEROOT ?= fakeroot +PREFIX ?= /usr +DESTDIR ?= -PROG= pw -MAN= pw.conf.5 pw.8 -SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \ - grupd.c pwupd.c psdate.c bitmap.c cpdir.c rm_r.c strtounum.c \ - pw_utils.c +DEB_MAINTAINER ?= Cameron Katri +DEB_ARCH ?= iphoneos-arm -WARNS?= 3 +all: pw -LIBADD= crypt util sbuf +pw: + $(CC) $(CFLAGS) -o pw -I. -Isbuf -Ilibutil *.c sbuf/*.c libutil/*.c + $(STRIP) pw -.include - -HAS_TESTS= -SUBDIR.${MK_TESTS}+= tests - -.include +clean: + rm -f pw -- cgit v1.2.3-56-ge451