4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 #
24 # Definitions common to command source.
25 #
26 # include global definitions; SRC should be defined in the shell.
27 # SRC is needed until RFE 1026993 is implemented.
28
29 include $(SRC)/Makefile.master
30
31 LN= ln
32 SH= sh
33 ECHO= echo
34 MKDIR= mkdir
35 TOUCH= touch
36
37 FILEMODE= 0555
38 LIBFILEMODE= 0444
39 XPG4= $(XPG4PROG:%=%.xpg4)
40 XPG6= $(XPG6PROG:%=%.xpg6)
41
42 KRB5DIR= $(ROOT)/usr
43 KRB5BIN= $(KRB5DIR)/bin
487 $(ROOTVARSMB)/%: %
488 $(INS.file)
489
490 # build rule for statically linked programs with single source file.
491 %.static: %.c
492 $(LINK.c) -o $@ $< $(LDLIBS)
493 $(POST_PROCESS)
494
495 %.xpg4: %.c
496 $(LINK.c) -o $@ $< $(LDLIBS)
497 $(POST_PROCESS)
498
499 %.xpg6: %.c
500 $(LINK.c) -o $@ $< $(LDLIBS)
501 $(POST_PROCESS)
502
503 # Define the majority text domain in this directory.
504 TEXT_DOMAIN= SUNW_OST_OSCMD
505
506 CLOBBERFILES += $(XPG4) $(XPG6) $(DCFILE)
507
508 # This flag is for programs which should not build a 32-bit binary
509 sparc_64ONLY= $(POUND_SIGN)
510 64ONLY= $($(MACH)_64ONLY)
|
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 #
24 # Copyright 2016 RackTop Systems.
25 #
26 # Definitions common to command source.
27 #
28 # include global definitions; SRC should be defined in the shell.
29 # SRC is needed until RFE 1026993 is implemented.
30
31 include $(SRC)/Makefile.master
32
33 LN= ln
34 SH= sh
35 ECHO= echo
36 MKDIR= mkdir
37 TOUCH= touch
38
39 FILEMODE= 0555
40 LIBFILEMODE= 0444
41 XPG4= $(XPG4PROG:%=%.xpg4)
42 XPG6= $(XPG6PROG:%=%.xpg6)
43
44 KRB5DIR= $(ROOT)/usr
45 KRB5BIN= $(KRB5DIR)/bin
489 $(ROOTVARSMB)/%: %
490 $(INS.file)
491
492 # build rule for statically linked programs with single source file.
493 %.static: %.c
494 $(LINK.c) -o $@ $< $(LDLIBS)
495 $(POST_PROCESS)
496
497 %.xpg4: %.c
498 $(LINK.c) -o $@ $< $(LDLIBS)
499 $(POST_PROCESS)
500
501 %.xpg6: %.c
502 $(LINK.c) -o $@ $< $(LDLIBS)
503 $(POST_PROCESS)
504
505 # Define the majority text domain in this directory.
506 TEXT_DOMAIN= SUNW_OST_OSCMD
507
508 CLOBBERFILES += $(XPG4) $(XPG6) $(DCFILE)
|