17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # |
21 # |
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
23 # Use is subject to license terms. |
|
24 # |
|
25 # ident "%Z%%M% %I% %E% SMI" |
|
26 # |
23 # |
27 |
24 |
28 PROG= pfexec |
25 PROG= pfexec |
29 SRCS= $(PROG:%=%.c) |
26 SRCS= $(PROG:%=%.c) |
30 PFEXEC= pfexec |
27 PFEXEC= pfexec |
31 |
28 |
|
29 BINSHELLS = bash csh ksh ksh93 rksh rksh93 sh tcsh zsh |
|
30 |
32 include ../Makefile.cmd |
31 include ../Makefile.cmd |
33 |
32 |
34 FILEMODE = 04555 |
33 FILEMODE = 0555 |
35 |
34 |
36 ROOTBINPFEXEC = $(PFEXEC:%=$(ROOTBIN)/%) |
35 ROOTBINPFEXEC = $(PFEXEC:%=$(ROOTBIN)/%) |
37 |
36 |
38 .KEEP_STATE: |
37 .KEEP_STATE: |
39 |
38 |
40 CPPFLAGS += -D_REENTRANT |
|
41 LDLIBS += -lsecdb -lbsm |
|
42 |
|
43 all: $(PROG) |
39 all: $(PROG) |
44 |
40 |
45 install: all $(ROOTBINPFEXEC) |
41 install: all $(ROOTBINPFEXEC) |
|
42 for s in $(BINSHELLS); do \ |
|
43 $(RM) $(ROOTBIN)/pf$$s; \ |
|
44 $(LN) $(ROOTBIN)/pfexec $(ROOTBIN)/pf$$s; \ |
|
45 done |
|
46 $(RM) $(ROOTXPG4BIN)/pfsh |
|
47 $(LN) $(ROOTBIN)/pfexec $(ROOTXPG4BIN)/pfsh |
|
48 $(RM) $(ROOTSBIN)/pfsh |
|
49 $(SYMLINK) ../usr/bin/pfexec $(ROOTSBIN)/pfsh |
|
50 $(RM) $(ROOTHASBIN)/pfsh |
|
51 $(LN) $(ROOTBIN)/pfexec $(ROOTHASBIN)/pfsh |
|
52 $(RM) $(ROOTHASBIN)/pfksh |
|
53 $(LN) $(ROOTBIN)/pfexec $(ROOTHASBIN)/pfksh |
46 |
54 |
47 clean: |
55 clean: |
48 |
56 |
49 lint: lint_SRCS |
57 lint: lint_SRCS |
50 |
58 |