3 #
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
25 #
26 # included to define local library targets
27 #
28
29 # conditional assignment of default permissions for the installed
30 # DYNLIB/DYNLIBCCC. Set here and in Makefile.mach, instead of Makefile.lib,
31 # because ROOTLIBDIR may be changed in the including makefile after it has
32 # included Makefile.lib.
33 #
34 $(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
35 $(ROOTLIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
36
37 $(ROOTFS_LIBDIR)/$(DYNLIB) := FILEMODE= 755
38 $(ROOTFS_LIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
39
40 $(ROOTLIBDIR64)/$(DYNLIB) := FILEMODE= 755
41 $(ROOTLIBDIR64)/$(DYNLIBCCC) := FILEMODE= 755
42
73 $(ROOTDEMODIRBASE)/%: $(DEMOFILESRCDIR)/%
74 $(INS.file)
75
76 objs/%.o pics/%.o: $(SRCDIR)/%.c
77 $(COMPILE.c) -o $@ $<
78 $(POST_PROCESS_O)
79
80 objs/%.o pics/%.o: $(SRCDIR)/%.cc
81 $(COMPILE.cc) -o $@ $<
82 $(POST_PROCESS_O)
83
84 objs pics:
85 -@mkdir -p $@
86
87 $(LIBRARY): objs .WAIT $$(OBJS)
88 $(BUILD.AR)
89 $(POST_PROCESS_A)
90
91 $(DYNLIB): $$(MAPFILES)
92
93 $(DYNLIB): pics .WAIT $$(PICS) $$(ALTPICS) $$(EXTPICS)
94 $(BUILD.SO)
95 $(POST_PROCESS_SO)
96
97 $(DYNLIBCCC): pics .WAIT $$(PICS) $$(ALTPICS) $$(EXTPICS)
98 $(BUILDCCC.SO)
99 $(POST_PROCESS_SO)
100
101 $(LINTLIB): $$(SRCS)
102 $(LINT.c) -o $(LIBNAME) $(SRCS) > $(LINTOUT) 2>&1
103
104 lintcheck: $$(SRCS)
105 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS)
106
107 clobber: clean
108 -$(RM) $(CLOBBERTARGFILES)
109
110 clean:
111 -$(RM) $(OBJS)
112 -$(RM) $(PICS) $(DUPLICATE_SRC) $(LINTOUT) $(LINTLIB) $(CLEANFILES)
|
3 #
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 # Copyright (c) 2014, Joyent, Inc.
24 #
25
26 #
27 # included to define local library targets
28 #
29
30 # conditional assignment of default permissions for the installed
31 # DYNLIB/DYNLIBCCC. Set here and in Makefile.mach, instead of Makefile.lib,
32 # because ROOTLIBDIR may be changed in the including makefile after it has
33 # included Makefile.lib.
34 #
35 $(ROOTLIBDIR)/$(DYNLIB) := FILEMODE= 755
36 $(ROOTLIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
37
38 $(ROOTFS_LIBDIR)/$(DYNLIB) := FILEMODE= 755
39 $(ROOTFS_LIBDIR)/$(DYNLIBCCC) := FILEMODE= 755
40
41 $(ROOTLIBDIR64)/$(DYNLIB) := FILEMODE= 755
42 $(ROOTLIBDIR64)/$(DYNLIBCCC) := FILEMODE= 755
43
74 $(ROOTDEMODIRBASE)/%: $(DEMOFILESRCDIR)/%
75 $(INS.file)
76
77 objs/%.o pics/%.o: $(SRCDIR)/%.c
78 $(COMPILE.c) -o $@ $<
79 $(POST_PROCESS_O)
80
81 objs/%.o pics/%.o: $(SRCDIR)/%.cc
82 $(COMPILE.cc) -o $@ $<
83 $(POST_PROCESS_O)
84
85 objs pics:
86 -@mkdir -p $@
87
88 $(LIBRARY): objs .WAIT $$(OBJS)
89 $(BUILD.AR)
90 $(POST_PROCESS_A)
91
92 $(DYNLIB): $$(MAPFILES)
93
94 $(DYNLIB): pics $(USDT_HEADERS) .WAIT $$(PICS) $$(ALTPICS) $$(EXTPICS) .WAIT $(USDT_PICS)
95 $(BUILD.SO)
96 $(POST_PROCESS_SO)
97
98 $(DYNLIBCCC): pics .WAIT $$(PICS) $$(ALTPICS) $$(EXTPICS)
99 $(BUILDCCC.SO)
100 $(POST_PROCESS_SO)
101
102 $(LINTLIB): $$(SRCS)
103 $(LINT.c) -o $(LIBNAME) $(SRCS) > $(LINTOUT) 2>&1
104
105 lintcheck: $$(SRCS)
106 $(LINT.c) $(LINTCHECKFLAGS) $(SRCS) $(LDLIBS)
107
108 clobber: clean
109 -$(RM) $(CLOBBERTARGFILES)
110
111 clean:
112 -$(RM) $(OBJS) $(USDT_HEADERS) $(USDT_PICS)
113 -$(RM) $(PICS) $(DUPLICATE_SRC) $(LINTOUT) $(LINTLIB) $(CLEANFILES)
|