xref: /illumos-gate/usr/src/cmd/smbios/Makefile (revision 6bc074b1)
184ab085aSmws#
284ab085aSmws# CDDL HEADER START
384ab085aSmws#
484ab085aSmws# The contents of this file are subject to the terms of the
524fe0b3bSjmcp# Common Development and Distribution License (the "License").
624fe0b3bSjmcp# You may not use this file except in compliance with the License.
784ab085aSmws#
884ab085aSmws# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
984ab085aSmws# or http://www.opensolaris.org/os/licensing.
1084ab085aSmws# See the License for the specific language governing permissions
1184ab085aSmws# and limitations under the License.
1284ab085aSmws#
1384ab085aSmws# When distributing Covered Code, include this CDDL HEADER in each
1484ab085aSmws# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1584ab085aSmws# If applicable, add the following below this CDDL HEADER, with the
1684ab085aSmws# fields enclosed by brackets "[]" replaced with your own identifying
1784ab085aSmws# information: Portions Copyright [yyyy] [name of copyright owner]
1884ab085aSmws#
1984ab085aSmws# CDDL HEADER END
2084ab085aSmws#
2184ab085aSmws#
2224fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2384ab085aSmws# Use is subject to license terms.
2484ab085aSmws#
2584ab085aSmws
2684ab085aSmwsPROG = smbios
27*6bc074b1SRobert MustacchiOBJS = smbios.o bitext.o
2884ab085aSmwsSRCS = $(OBJS:%.o=%.c)
2984ab085aSmws
3084ab085aSmwsinclude ../Makefile.cmd
3184ab085aSmws
3284ab085aSmwsCFLAGS += $(CCVERBOSE)
331566bc34SRobert MustacchiLDLIBS += -lsmbios -ljedec
3484ab085aSmws
3584ab085aSmwsFILEMODE = 0555
3684ab085aSmwsSTRIPFLAG =
3784ab085aSmws
3884ab085aSmws.KEEP_STATE:
3984ab085aSmws
4084ab085aSmwsall: $(PROG)
4184ab085aSmws
4284ab085aSmws$(PROG): $(OBJS)
4384ab085aSmws	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
4484ab085aSmws	$(POST_PROCESS)
4584ab085aSmws
46*6bc074b1SRobert Mustacchi%.o: $(SRC)/common/bitext/%.c
47*6bc074b1SRobert Mustacchi	$(COMPILE.c) $<
48*6bc074b1SRobert Mustacchi	$(POST_PROCESS_O)
49*6bc074b1SRobert Mustacchi
5084ab085aSmwsclean:
5184ab085aSmws	$(RM) $(OBJS)
5284ab085aSmws
5384ab085aSmwsinstall: $(ROOTUSRSBINPROG)
5484ab085aSmws
5584ab085aSmwsinclude ../Makefile.targ
56