xref: /illumos-gate/usr/src/cmd/smbios/Makefile (revision 80b758da23abee3ef0e550f533aada9ce3b1b01f)
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#
2543379a28SAndy Fiddaman# Copyright 2024 Oxide Computer Company
2684ab085aSmws
2784ab085aSmwsPROG = smbios
28*80b758daSAndy FiddamanOBJS = smbios.o bitext.o $(HEXDUMP_OBJS)
2984ab085aSmwsSRCS = $(OBJS:%.o=%.c)
3084ab085aSmws
3184ab085aSmwsinclude ../Makefile.cmd
32482d9a1aSRichard Loweinclude ../Makefile.cmd.64
33*80b758daSAndy Fiddamaninclude $(SRC)/common/hexdump/Makefile.com
3484ab085aSmws
3584ab085aSmwsCFLAGS += $(CCVERBOSE)
361566bc34SRobert MustacchiLDLIBS += -lsmbios -ljedec
3784ab085aSmws
3884ab085aSmwsFILEMODE = 0555
3984ab085aSmwsSTRIPFLAG =
4084ab085aSmws
4184ab085aSmws.KEEP_STATE:
4284ab085aSmws
4384ab085aSmwsall: $(PROG)
4484ab085aSmws
4584ab085aSmws$(PROG): $(OBJS)
4684ab085aSmws	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
4784ab085aSmws	$(POST_PROCESS)
4884ab085aSmws
496bc074b1SRobert Mustacchi%.o: $(SRC)/common/bitext/%.c
506bc074b1SRobert Mustacchi	$(COMPILE.c) $<
516bc074b1SRobert Mustacchi	$(POST_PROCESS_O)
526bc074b1SRobert Mustacchi
5384ab085aSmwsclean:
5484ab085aSmws	$(RM) $(OBJS)
5584ab085aSmws
5684ab085aSmwsinstall: $(ROOTUSRSBINPROG)
5784ab085aSmws
58*80b758daSAndy Fiddamaninclude $(SRC)/common/hexdump/Makefile.targ
5984ab085aSmwsinclude ../Makefile.targ
60