xref: /illumos-gate/usr/src/lib/libjedec/Makefile.com (revision fe82ebb0)
11566bc34SRobert Mustacchi#
21566bc34SRobert Mustacchi# This file and its contents are supplied under the terms of the
31566bc34SRobert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
41566bc34SRobert Mustacchi# You may only use this file in accordance with the terms of version
51566bc34SRobert Mustacchi# 1.0 of the CDDL.
61566bc34SRobert Mustacchi#
71566bc34SRobert Mustacchi# A full copy of the text of the CDDL should have accompanied this
81566bc34SRobert Mustacchi# source.  A copy of the CDDL is also available via the Internet at
91566bc34SRobert Mustacchi# http://www.illumos.org/license/CDDL.
101566bc34SRobert Mustacchi#
111566bc34SRobert Mustacchi
121566bc34SRobert Mustacchi#
132944b91eSJohn Levon# Copyright 2020 Joyent, Inc.
14*fe82ebb0SRobert Mustacchi# Copyright 2023 Oxide Computer Company
151566bc34SRobert Mustacchi#
161566bc34SRobert Mustacchi
171566bc34SRobert MustacchiLIBRARY =	libjedec.a
181566bc34SRobert MustacchiVERS =		.1
19*fe82ebb0SRobert MustacchiOBJECTS =	libjedec.o libjedec_spd.o libjedec_spd_ddr4.o bitext.o \
20*fe82ebb0SRobert Mustacchi		libjedec_spd_ddr5.o libjedec_temp.o
211566bc34SRobert Mustacchi
221566bc34SRobert Mustacchiinclude ../../Makefile.lib
231566bc34SRobert Mustacchi
24241c90a0SRichard LoweLIBS =		$(DYNLIB)
251566bc34SRobert MustacchiCPPFLAGS +=	-I../common
26*fe82ebb0SRobert MustacchiLDLIBS +=	-lc -lnvpair
27*fe82ebb0SRobert MustacchiCSTD =		$(CSTD_GNU99)
281566bc34SRobert Mustacchi
291566bc34SRobert MustacchiSRCDIR =	../common
301566bc34SRobert Mustacchi
311566bc34SRobert Mustacchi.KEEP_STATE:
321566bc34SRobert Mustacchi
331566bc34SRobert Mustacchiall:	$(LIBS)
341566bc34SRobert Mustacchi
35*fe82ebb0SRobert Mustacchipics/%.o: $(SRC)/common/bitext/%.c
36*fe82ebb0SRobert Mustacchi	$(COMPILE.c) -o $@ $<
37*fe82ebb0SRobert Mustacchi	$(POST_PROCESS_O)
38*fe82ebb0SRobert Mustacchi
391566bc34SRobert Mustacchiinclude ../../Makefile.targ
40*fe82ebb0SRobert Mustacchi
41