kernel: remove unused utsname_set_machine()
[unleashed.git] / usr / src / lib / libprtdiag_psr / sparc / desktop / nonpicl / Makefile
blob48d8bfd8c47a4f91731691884d4a86bb143ca694
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # lib/libprtdiag_psr/sparc/desktop/nonpicl/Makefile
27 UTSBASE = $(SRC)/uts
29 PLATFORM_OBJECTS= desktop.o
31 objs/%.o pics/%.o: ../common/%.c
32 $(COMPILE.c) $(IFLAGS) -o $@ $<
33 $(POST_PROCESS_O)
35 include $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
37 SRCS= $(OBJECTS:%.o=../common/%.c)
39 IFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
42 # desktop platform library should install into
43 # SUNW,Ultra-2. All other desktop platforms can
44 # link to /usr/platform/SUNW,Ultra-2/lib/libprtdiag_psr.so
46 PLATFORM=SUNW,Ultra-2
49 # For all other sun4u platforms NOT delivered by ON (ie. delivered
50 # by SME or external hardware vendors) we add a default library in
51 # /usr/platform/sun4u/lib so that prtdiag will default to using
52 # the desktop library for any of these platforms. (this will be a
53 # link to ../../SUNW,Ultra-2/lib
55 DEF_PLATFORM=sun4u
56 USR_DEF_PSM_LIB_DIR=$(USR_PLAT_DIR)/$(DEF_PLATFORM)/lib
57 USR_DEF_PSM_LIBS=$(LIBS:%=$(USR_DEF_PSM_LIB_DIR)/%)
59 $(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
61 .KEEP_STATE:
63 PLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib/
65 install: all $(USR_PSM_LIBS) $(USR_DEF_PSM_LIBS)
68 # install rules for SUNW,Ultra-2/lib/libprtdiag_psr.so.1
70 $(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
71 $(INS.file)
73 $(USR_PSM_LIB_DIR):
74 cd $(UTSBASE)/sun4u; $(MAKE) $(USR_PSM_LIB_DIR)
77 # install rules for sun4u/lib/libprtdiag_psr.so.1
79 $(USR_DEF_PSM_LIB_DIR)/%: % $(USR_DEF_PSM_LIB_DIR)
80 $(RM) -r $@; \
81 $(SYMLINK) ../../$(PLATFORM)/lib/libprtdiag_psr.so.1 $@
83 $(USR_DEF_PSM_LIB_DIR):
84 cd $(UTSBASE)/sun4u; $(MAKE) $(USR_DEF_PSM_LIB_DIR)
88 # Rules for making message files
90 POFILE= libprtdiag_psr_desktop.po
91 POFILES= desktop.po
93 _msg: $(MSGDOMAIN) $(POFILE)
94 $(RM) $(MSGDOMAIN)/$(POFILE)
95 $(CP) $(POFILE) $(MSGDOMAIN)
97 $(POFILE): $(POFILES)
98 $(RM) $@
99 $(CAT) $(POFILES) > $@
101 $(POFILES):
102 $(RM) messages.po
103 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../common/desktop.c`
104 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
105 $(RM) messages.po