xref: /titanic_41/usr/src/cmd/eeprom/Makefile.com (revision 6dfee4834394825da35b977ca71cdc965bc7b6a4)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1993,1998 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# cmd/eeprom/Makefile.com
29#
30
31#
32#	Create default so empty rules don't
33#	confuse make
34#
35CLASS		= 32
36
37include $(SRCDIR)/../Makefile.cmd
38include $(SRCDIR)/../../Makefile.psm
39
40PROG		= eeprom
41
42FILEMODE	= 02555
43DIRMODE		= 755
44GROUP		= sys
45
46#
47# Sparc program implementation supports openprom machines.  identical versions
48# are installed in /usr/platform for each machine type
49# because (at this point in time) we have no guarantee that a common version
50# will be available for all potential sparc machines (eg: ICL, solbourne ,...).
51#
52# The identical binary is installed several times (rather than linking them
53# together) because they will be in separate packages.
54#
55# Now that it should be obvious that little (if anything) was gained from
56# this `fix-impl' implementation style, maybe somebody will unroll this in
57# distinct, small and simpler versions for each PROM type.
58#
59IMPL = $(PLATFORM:sun%=sun)
60
61prep_OBJS = openprom.o loadlogo.o
62sun_OBJS = openprom.o loadlogo.o
63i86pc_OBJS = benv.o benv_kvm.o benv_sync.o
64OBJS = error.o
65OBJS += $($(IMPL)_OBJS)
66LINT_OBJS = $(OBJS:%.o=%.ln)
67
68prep_SOURCES = openprom.c loadlogo.c
69sun_SOURCES = openprom.c loadlogo.c
70i86pc_SOURCES = benv.c benv_kvm.c benv_syn.c
71SOURCES	= error.c
72SOURCES	+= $($(IMPL)_SOURCES)
73
74.PARALLEL: $(OBJS)
75
76%.o:	../common/%.c
77	$(COMPILE.c) -o $@ $<
78
79%.o:	$(SRCDIR)/common/%.c
80	$(COMPILE.c) -o $@ $<
81
82%.ln:	../common/%.c
83	$(LINT.c) -c $@ $<
84
85%.ln:	$(SRCDIR)/common/%.c
86	$(LINT.c) -c $@ $<
87