]> git.saurik.com Git - apple/system_cmds.git/blame - login.tproj/Makefile
system_cmds-496.tar.gz
[apple/system_cmds.git] / login.tproj / Makefile
CommitLineData
916eb79e
A
1Project = login
2Install_Dir = /usr/bin
1815bff5 3
34d340d7 4
1815bff5 5HFILES = pathnames.h
ef8ad44b 6CFILES = login.c
916eb79e 7MANPAGES = login.1
1815bff5 8
916eb79e 9Embedded=$(shell tconf --test TARGET_OS_EMBEDDED)
1815bff5 10
ef8ad44b
A
11Extra_CC_Flags = -Wall -Werror -mdynamic-no-pic
12Extra_LD_Flags = -dead_strip
13
14Extra_CC_Flags += -D__FBSDID=__RCSID
15
16ifneq ($(Embedded),YES)
17CFILES += login_audit.c
18Extra_CC_Flags += -DUSE_PAM -DUSE_BSM_AUDIT
19Extra_LD_Flags += -lbsm -lpam
20else
21Extra_CC_Flags += -Wno-deprecated-declarations
34d340d7 22endif
1815bff5 23
916eb79e 24include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
1815bff5 25
916eb79e 26Install_Program_Mode = 04555
ef8ad44b
A
27
28after_install:
29 $(INSTALL_DIRECTORY) "$(DSTROOT)"/private/etc/pam.d
30 $(INSTALL_FILE) login.pam "$(DSTROOT)"/private/etc/pam.d/login
31 sed -e '/pam_launchd.so/d' < login.pam > "$(OBJROOT)"/login.term
32 $(INSTALL_FILE) "$(OBJROOT)"/login.term "$(DSTROOT)"/private/etc/pam.d/login.term