xref: /illumos-gate/usr/src/cmd/amdzen/Makefile (revision dde6d5134333279b60915f237b5c04f4472bb385)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2026 Oxide Computer Company
14#
15
16PROG= usmn udf
17
18include ../Makefile.cmd
19
20ROOTCMDDIR = $(ROOTLIB)
21CPPFLAGS += -I$(SRC)/uts/intel/io/amdzen
22CFLAGS += $(CCVERBOSE)
23CSTD = $(CSTD_GNU17)
24COMMON_OBJS = amdzen_common.o
25LDLIBS += -ldevinfo
26
27.KEEP_STATE:
28
29all: $(PROG)
30
31$(PROG): $(COMMON_OBJS)
32
33%: %.o
34	$(LINK.c) -o $@ $< $(COMMON_OBJS) $(LDLIBS)
35	$(POST_PROCESS)
36
37install: all $(ROOTCMD)
38
39clean:
40	$(RM) $(COMMON_OBJS) $(PROG:%=%.o)
41
42include ../Makefile.targ
43