]> git.saurik.com Git - apple/system_cmds.git/blobdiff - passwd.tproj/Makefile
system_cmds-496.tar.gz
[apple/system_cmds.git] / passwd.tproj / Makefile
index d474a92a93ac1c38573dfc17e2e500b80b970c4b..b3136d1c3b389cfcdf7d44e44e0e664e6dd9a000 100644 (file)
@@ -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