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 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # cmd/vgrind/Makefile
26
27 #
28 # These are the objects associated with the overall vgrind command.
29 #
30 VFONTEDPR= vfontedpr
31 RETEST= retest
32 MACROS= tmac.vgrind
33 LANGDEFS= vgrindefs
34 KSHPROG= vgrind
35
36 #
37 # These macros captures objects that ultimately will be installed in
38 # (respectively) /usr/bin, /usr/lib, and /usr/share/lib.
39 #
40 # Note also that retest is used strictly as a test program and is never
41 # installed. We omit it here, so that the NSE doesn't spend cycles
42 # on it when acquiring and reconciling.
43 #
44 PROG= $(KSHPROG)
45 LIBPROG= $(VFONTEDPR) $(LANGDEFS)
49 RETESTOBJS= retest.o regexp.o
50
51 RETESTSRC= $(RETESTOBJS:%.o=%.c)
52
53 OBJS= $(VFONTEDPROBJS) $(RETESTOBJS)
54 SRCS= $(OBJS:%.o=%.c)
55
56 #
57 # We can get away simply with omitting TMACPROGS to protect
58 # tmac.vgrind, since it's the only entry in that macro.
59 #
60 CLOBBERFILES= $(LIBPROG) $(RETEST)
61
62 include ../Makefile.cmd
63
64 CERRWARN += -_gcc=-Wno-implicit-function-declaration
65 CERRWARN += -_gcc=-Wno-parentheses
66 CERRWARN += -_gcc=-Wno-unused-variable
67 CERRWARN += -_gcc=-Wno-unused-function
68
69 #
70 # Message catalog
71 #
72 POFILES= $(OBJS:%.o=%.po)
73 POFILE= vgrind.po
74 POFILE_KSH= vgrind_ksh.po
75
76 #
77 # Abbreviation for future use.
78 #
79 ROOTTMAC= $(ROOT)/usr/share/lib/tmac
80
81 #
82 # Override macro definitions from Makefile.cmd. Necessary because
83 # we're building targets for multiple destinations.
84 #
85 ROOTLIBPROG= $(LIBPROG:%=$(ROOT)/usr/lib/%)
86 ROOTTMACPROG= $(TMACPROG:%=$(ROOTTMAC)/%)
87
88 #
|
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 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright (c) 2018, Joyent, Inc.
26
27 #
28 # These are the objects associated with the overall vgrind command.
29 #
30 VFONTEDPR= vfontedpr
31 RETEST= retest
32 MACROS= tmac.vgrind
33 LANGDEFS= vgrindefs
34 KSHPROG= vgrind
35
36 #
37 # These macros captures objects that ultimately will be installed in
38 # (respectively) /usr/bin, /usr/lib, and /usr/share/lib.
39 #
40 # Note also that retest is used strictly as a test program and is never
41 # installed. We omit it here, so that the NSE doesn't spend cycles
42 # on it when acquiring and reconciling.
43 #
44 PROG= $(KSHPROG)
45 LIBPROG= $(VFONTEDPR) $(LANGDEFS)
49 RETESTOBJS= retest.o regexp.o
50
51 RETESTSRC= $(RETESTOBJS:%.o=%.c)
52
53 OBJS= $(VFONTEDPROBJS) $(RETESTOBJS)
54 SRCS= $(OBJS:%.o=%.c)
55
56 #
57 # We can get away simply with omitting TMACPROGS to protect
58 # tmac.vgrind, since it's the only entry in that macro.
59 #
60 CLOBBERFILES= $(LIBPROG) $(RETEST)
61
62 include ../Makefile.cmd
63
64 CERRWARN += -_gcc=-Wno-implicit-function-declaration
65 CERRWARN += -_gcc=-Wno-parentheses
66 CERRWARN += -_gcc=-Wno-unused-variable
67 CERRWARN += -_gcc=-Wno-unused-function
68
69 # not linted
70 SMATCH=off
71
72 #
73 # Message catalog
74 #
75 POFILES= $(OBJS:%.o=%.po)
76 POFILE= vgrind.po
77 POFILE_KSH= vgrind_ksh.po
78
79 #
80 # Abbreviation for future use.
81 #
82 ROOTTMAC= $(ROOT)/usr/share/lib/tmac
83
84 #
85 # Override macro definitions from Makefile.cmd. Necessary because
86 # we're building targets for multiple destinations.
87 #
88 ROOTLIBPROG= $(LIBPROG:%=$(ROOT)/usr/lib/%)
89 ROOTTMACPROG= $(TMACPROG:%=$(ROOTTMAC)/%)
90
91 #
|