103831d35Sstevel# 203831d35Sstevel# CDDL HEADER START 303831d35Sstevel# 403831d35Sstevel# The contents of this file are subject to the terms of the 503831d35Sstevel# Common Development and Distribution License (the "License"). 603831d35Sstevel# You may not use this file except in compliance with the License. 703831d35Sstevel# 803831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 903831d35Sstevel# or http://www.opensolaris.org/os/licensing. 1003831d35Sstevel# See the License for the specific language governing permissions 1103831d35Sstevel# and limitations under the License. 1203831d35Sstevel# 1303831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each 1403831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1503831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the 1603831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying 1703831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner] 1803831d35Sstevel# 1903831d35Sstevel# CDDL HEADER END 2003831d35Sstevel# 2103831d35Sstevel 2203831d35Sstevel# 2324fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2403831d35Sstevel# Use is subject to license terms. 2503831d35Sstevel# 2603831d35Sstevel# cmd/scadm/Makefile.com 2703831d35Sstevel# 2803831d35Sstevel 2903831d35Sstevel# 3003831d35Sstevel# Create default so empty rules don't 3103831d35Sstevel# confuse make 3203831d35Sstevel# 3303831d35SstevelCLASS = 32 3403831d35Sstevel 3503831d35Sstevelinclude $(SRC)/cmd/Makefile.cmd 3603831d35Sstevelinclude $(SRC)/Makefile.psm 3703831d35Sstevel 3803831d35SstevelPROG = scadm 3903831d35Sstevel 4003831d35SstevelFILEMODE = 2755 4103831d35SstevelDIRMODE = 755 4203831d35Sstevel 4303831d35Sstevel#IMPL = $(PLATFORM:sun%=sun) 4403831d35SstevelIMPL = mpxu 4503831d35Sstevel 4603831d35Sstevelmpxu_OBJS = boot_recv.o callback.o date.o download.o eventlog.o \ 4703831d35Sstevel help.o init.o modem_setup.o process_command.o reset.o \ 4803831d35Sstevel scadm.o send_event.o send_file.o set.o show.o status.o usage.o \ 4903831d35Sstevel user.o valid_srecord.o wrappers.o smq.o xsem.o consolelog.o \ 5003831d35Sstevel configlog.o 5103831d35Sstevel 5203831d35SstevelOBJS= $($(IMPL)_OBJS) 5303831d35Sstevel 5403831d35Sstevelmpxu_SOURCES = boot_recv.c callback.c date.c download.c eventlog.c \ 5503831d35Sstevel help.c init.c modem_setup.c process_command.c reset.c \ 5603831d35Sstevel scadm.c send_event.c send_file.c set.c show.c status.c usage.c \ 5703831d35Sstevel user.c valid_srecord.c wrappers.c smq.c xsem.c consolelog.c \ 5803831d35Sstevel configlog.c 5903831d35Sstevel 6003831d35SstevelSOURCES= $($(IMPL)_SOURCES) 6103831d35Sstevel 6203831d35Sstevel# allow additional kernel-architecture dependent objects to be specified. 6303831d35Sstevel 6403831d35SstevelOBJS += $(KARCHOBJS) 6503831d35Sstevel 6603831d35SstevelSRCS = $(OBJS:%.o=%.c) 6703831d35Sstevel 6803831d35SstevelLINT_OBJS = $(OBJS:%.o=%.ln) 6903831d35Sstevel 7003831d35SstevelPOFILE = scadm_$(PLATFORM).po 7103831d35SstevelPOFILES = $(OBJS:%.o=%.po) 7203831d35Sstevel 7303831d35Sstevel 7403831d35Sstevel# These names describe the layout on the target machine 7503831d35Sstevel 7603831d35SstevelIFLAGS = -I$(SRCDIR) -I$(USR_PSM_INCL_DIR) \ 7703831d35Sstevel -I$(SRCDIR)/../../lib/librsc/sparc/mpxu/common \ 7803831d35Sstevel -I$(SRCDIR)/../../uts/sun4u -I$(SRCDIR)/../../../src/uts/sun4u 7903831d35Sstevel 8003831d35SstevelCPPFLAGS = $(IFLAGS) $(CPPFLAGS.master) -D_SYSCALL32 8103831d35Sstevel 82*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 83*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 84*7014882cSRichard Lowe 8554b87f36SstevelLINKED_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%) 8654b87f36SstevelLINKED_SBIN_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/sbin) 8754b87f36Sstevel 8803831d35Sstevel.PARALLEL: $(OBJS) 8903831d35Sstevel 9054b87f36Sstevel$(LINKED_SBIN_DIRS): $(LINKED_DIRS) 9148bc00d6Sjmcp -$(INS.dir) 9254b87f36Sstevel 9303831d35Sstevel%.o: common/%.c 9403831d35Sstevel $(COMPILE.c) -o $@ $< 9503831d35Sstevel 9603831d35Sstevel%.o: $(SRCDIR)/common/%.c 9703831d35Sstevel $(COMPILE.c) -o $@ $< 9803831d35Sstevel 9903831d35Sstevel%.ln: common/%.c 10003831d35Sstevel $(LINT.c) -c $@ $< 10103831d35Sstevel 10203831d35Sstevel%.ln: $(SRCDIR)/common/%.c 10303831d35Sstevel $(LINT.c) -c $@ $< 10403831d35Sstevel 10503831d35Sstevel%.po: common/%.c 10603831d35Sstevel $(COMPILE.cpp) $< > $<.i 10703831d35Sstevel $(BUILD.po) 10803831d35Sstevel 10903831d35Sstevel%.po: $(SRCDIR)/common/%.c 11003831d35Sstevel $(COMPILE.cpp) $< > $<.i 11103831d35Sstevel $(BUILD.po) 112