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]
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
35 include $(SRC)/cmd/Makefile.cmd
36 include $(SRC)/Makefile.psm
43 #IMPL = $(PLATFORM:sun%=sun)
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 \
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 \
60 SOURCES= $($(IMPL)_SOURCES)
62 # allow additional kernel-architecture dependent objects to be specified.
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)
90 $(LINKED_SBIN_DIRS): $(LINKED_DIRS)
96 %.o: $(SRCDIR)/common/%.c
102 %.ln: $(SRCDIR)/common/%.c
106 $(COMPILE.cpp) $< > $<.i
109 %.po: $(SRCDIR)/common/%.c
110 $(COMPILE.cpp) $< > $<.i