640 number_to_scaled_string is duplicated in several commands
[unleashed.git] / usr / src / cmd / scadm / Makefile.com
blobf85d0d8363323ac4c0cbd29ee72a922f7dfce228
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
23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24 # Use is subject to license terms.
26 # cmd/scadm/Makefile.com
30 #       Create default so empty rules don't
31 #       confuse make
33 CLASS           = 32
35 include $(SRC)/cmd/Makefile.cmd
36 include $(SRC)/Makefile.psm
38 PROG            = scadm
40 FILEMODE        = 2755
41 DIRMODE         = 755
43 #IMPL = $(PLATFORM:sun%=sun)
44 IMPL = mpxu
46 mpxu_OBJS = boot_recv.o callback.o date.o download.o eventlog.o \
47         help.o init.o modem_setup.o process_command.o reset.o \
48         scadm.o send_event.o send_file.o set.o show.o status.o usage.o \
49         user.o valid_srecord.o wrappers.o smq.o xsem.o consolelog.o \
50         configlog.o
52 OBJS= $($(IMPL)_OBJS)
54 mpxu_SOURCES = boot_recv.c callback.c date.c download.c eventlog.c \
55         help.c init.c modem_setup.c process_command.c reset.c \
56         scadm.c send_event.c send_file.c set.c show.c status.c usage.c \
57         user.c valid_srecord.c wrappers.c smq.c xsem.c consolelog.c \
58         configlog.c
60 SOURCES= $($(IMPL)_SOURCES)
62 # allow additional kernel-architecture dependent objects to be specified.
64 OBJS            += $(KARCHOBJS)
66 SRCS            = $(OBJS:%.o=%.c)
68 LINT_OBJS       = $(OBJS:%.o=%.ln)
70 POFILE          = scadm_$(PLATFORM).po
71 POFILES         = $(OBJS:%.o=%.po)
74 # These names describe the layout on the target machine
76 IFLAGS = -I$(SRCDIR) -I$(USR_PSM_INCL_DIR) \
77         -I$(SRCDIR)/../../lib/librsc/sparc/mpxu/common \
78         -I$(SRCDIR)/../../uts/sun4u -I$(SRCDIR)/../../../src/uts/sun4u
80 CPPFLAGS = $(IFLAGS) $(CPPFLAGS.master) -D_SYSCALL32
82 CERRWARN += -_gcc=-Wno-implicit-function-declaration
83 CERRWARN += -_gcc=-Wno-unused-variable
85 LINKED_DIRS     = $(PLATLINKS:%=$(USR_PLAT_DIR)/%)
86 LINKED_SBIN_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/sbin)
88 .PARALLEL: $(OBJS)
90 $(LINKED_SBIN_DIRS): $(LINKED_DIRS)
91         -$(INS.dir)
93 %.o:    common/%.c
94         $(COMPILE.c) -o $@ $<
96 %.o:    $(SRCDIR)/common/%.c
97         $(COMPILE.c) -o $@ $<
99 %.ln:   common/%.c
100         $(LINT.c) -c $@ $<
102 %.ln:   $(SRCDIR)/common/%.c
103         $(LINT.c) -c $@ $<
105 %.po:   common/%.c
106         $(COMPILE.cpp) $<  > $<.i
107         $(BUILD.po)
109 %.po:   $(SRCDIR)/common/%.c
110         $(COMPILE.cpp) $<  > $<.i
111         $(BUILD.po)