xref: /titanic_50/usr/src/cmd/scadm/Makefile.com (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
1*03831d35Sstevel#
2*03831d35Sstevel# CDDL HEADER START
3*03831d35Sstevel#
4*03831d35Sstevel# The contents of this file are subject to the terms of the
5*03831d35Sstevel# Common Development and Distribution License (the "License").
6*03831d35Sstevel# You may not use this file except in compliance with the License.
7*03831d35Sstevel#
8*03831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*03831d35Sstevel# or http://www.opensolaris.org/os/licensing.
10*03831d35Sstevel# See the License for the specific language governing permissions
11*03831d35Sstevel# and limitations under the License.
12*03831d35Sstevel#
13*03831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each
14*03831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*03831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the
16*03831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
17*03831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
18*03831d35Sstevel#
19*03831d35Sstevel# CDDL HEADER END
20*03831d35Sstevel#
21*03831d35Sstevel
22*03831d35Sstevel#
23*03831d35Sstevel# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*03831d35Sstevel# Use is subject to license terms.
25*03831d35Sstevel#
26*03831d35Sstevel# ident	"%Z%%M%	%I%	%E% SMI"
27*03831d35Sstevel#
28*03831d35Sstevel# cmd/scadm/Makefile.com
29*03831d35Sstevel#
30*03831d35Sstevel
31*03831d35Sstevel#
32*03831d35Sstevel#	Create default so empty rules don't
33*03831d35Sstevel#	confuse make
34*03831d35Sstevel#
35*03831d35SstevelCLASS		= 32
36*03831d35Sstevel
37*03831d35Sstevelinclude $(SRC)/cmd/Makefile.cmd
38*03831d35Sstevelinclude $(SRC)/Makefile.psm
39*03831d35Sstevel
40*03831d35SstevelPROG		= scadm
41*03831d35Sstevel
42*03831d35SstevelFILEMODE	= 2755
43*03831d35SstevelDIRMODE		= 755
44*03831d35SstevelOWNER		= root
45*03831d35SstevelGROUP		= sys
46*03831d35Sstevel
47*03831d35Sstevel#IMPL = $(PLATFORM:sun%=sun)
48*03831d35SstevelIMPL = mpxu
49*03831d35Sstevel
50*03831d35Sstevelmpxu_OBJS = boot_recv.o callback.o date.o download.o eventlog.o \
51*03831d35Sstevel	help.o init.o modem_setup.o process_command.o reset.o \
52*03831d35Sstevel	scadm.o send_event.o send_file.o set.o show.o status.o usage.o \
53*03831d35Sstevel	user.o valid_srecord.o wrappers.o smq.o xsem.o consolelog.o \
54*03831d35Sstevel	configlog.o
55*03831d35Sstevel
56*03831d35SstevelOBJS= $($(IMPL)_OBJS)
57*03831d35Sstevel
58*03831d35Sstevelmpxu_SOURCES = boot_recv.c callback.c date.c download.c eventlog.c \
59*03831d35Sstevel	help.c init.c modem_setup.c process_command.c reset.c \
60*03831d35Sstevel	scadm.c send_event.c send_file.c set.c show.c status.c usage.c \
61*03831d35Sstevel	user.c valid_srecord.c wrappers.c smq.c xsem.c consolelog.c \
62*03831d35Sstevel	configlog.c
63*03831d35Sstevel
64*03831d35SstevelSOURCES= $($(IMPL)_SOURCES)
65*03831d35Sstevel
66*03831d35Sstevel# allow additional kernel-architecture dependent objects to be specified.
67*03831d35Sstevel
68*03831d35SstevelOBJS		+= $(KARCHOBJS)
69*03831d35Sstevel
70*03831d35SstevelSRCS		= $(OBJS:%.o=%.c)
71*03831d35Sstevel
72*03831d35SstevelLINT_OBJS	= $(OBJS:%.o=%.ln)
73*03831d35Sstevel
74*03831d35SstevelPOFILE		= scadm_$(PLATFORM).po
75*03831d35SstevelPOFILES		= $(OBJS:%.o=%.po)
76*03831d35Sstevel
77*03831d35Sstevel
78*03831d35Sstevel# These names describe the layout on the target machine
79*03831d35Sstevel
80*03831d35SstevelIFLAGS = -I$(SRCDIR) -I$(USR_PSM_INCL_DIR) \
81*03831d35Sstevel	-I$(SRCDIR)/../../lib/librsc/sparc/mpxu/common \
82*03831d35Sstevel	-I$(SRCDIR)/../../uts/sun4u -I$(SRCDIR)/../../../src/uts/sun4u
83*03831d35Sstevel
84*03831d35SstevelCPPFLAGS = $(IFLAGS) $(CPPFLAGS.master) -D_SYSCALL32
85*03831d35Sstevel
86*03831d35Sstevel.PARALLEL: $(OBJS)
87*03831d35Sstevel
88*03831d35Sstevel%.o:	common/%.c
89*03831d35Sstevel	$(COMPILE.c) -o $@ $<
90*03831d35Sstevel
91*03831d35Sstevel%.o:	$(SRCDIR)/common/%.c
92*03831d35Sstevel	$(COMPILE.c) -o $@ $<
93*03831d35Sstevel
94*03831d35Sstevel%.ln:	common/%.c
95*03831d35Sstevel	$(LINT.c) -c $@ $<
96*03831d35Sstevel
97*03831d35Sstevel%.ln:	$(SRCDIR)/common/%.c
98*03831d35Sstevel	$(LINT.c) -c $@ $<
99*03831d35Sstevel
100*03831d35Sstevel%.po:   common/%.c
101*03831d35Sstevel	$(COMPILE.cpp) $<  > $<.i
102*03831d35Sstevel	$(BUILD.po)
103*03831d35Sstevel
104*03831d35Sstevel%.po:   $(SRCDIR)/common/%.c
105*03831d35Sstevel	$(COMPILE.cpp) $<  > $<.i
106*03831d35Sstevel	$(BUILD.po)
107