X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/916eb79ee6e2fd3e1ab08275e76ec4e126cab685..ef8ad44b9b5d9c6d8c0fa5b5494f449fb6717387:/passwd.tproj/Makefile diff --git a/passwd.tproj/Makefile b/passwd.tproj/Makefile index d474a92..b3136d1 100644 --- a/passwd.tproj/Makefile +++ b/passwd.tproj/Makefile @@ -7,12 +7,18 @@ MANPAGES = passwd.1 Embedded=$(shell tconf --test TARGET_OS_EMBEDDED) +Extra_CC_Flags = -Wall -Werror -mdynamic-no-pic +Extra_LD_Flags = -dead_strip + ifeq ($(Embedded),NO) -CFILES += nis_passwd.c od_passwd.c -Extra_Frameworks = -F/System/Library/PrivateFrameworks -framework OpenDirectory -framework CoreFoundation -Extra_CC_Flags = -F/System/Library/PrivateFrameworks +CFILES += nis_passwd.c od_passwd.c pam_passwd.c +Extra_Frameworks = -framework OpenDirectory -framework CoreFoundation -lpam endif include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make Install_Program_Mode = 04555 + +after_install: + $(INSTALL_DIRECTORY) "$(DSTROOT)"/private/etc/pam.d + $(INSTALL_FILE) passwd.pam "$(DSTROOT)"/private/etc/pam.d/passwd