diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-02-10 18:13:31 -0500 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-02-10 19:00:38 -0500 |
commit | 9768b265bd097e561103188bb97f64ef26c6cee1 (patch) | |
tree | d31efcee098e5f18f411f72c26782ebfe53523b5 /pw/Makefile | |
parent | ec831d9055a20b69cb9a7300990b8e4414cbd474 (diff) | |
download | pw-darwin-9768b265bd097e561103188bb97f64ef26c6cee1.tar.gz pw-darwin-9768b265bd097e561103188bb97f64ef26c6cee1.tar.zst pw-darwin-9768b265bd097e561103188bb97f64ef26c6cee1.zip |
New Makefile, freebsd reallocarray.c, freebsd strtonum for 12/13 compat, delete tests
Diffstat (limited to 'pw/Makefile')
-rw-r--r-- | pw/Makefile | 30 |
1 files changed, 16 insertions, 14 deletions
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 <me@cameronkatri.com> +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 <src.opts.mk> - -HAS_TESTS= -SUBDIR.${MK_TESTS}+= tests - -.include <bsd.prog.mk> +clean: + rm -f pw |