xref: /illumos-gate/usr/src/cmd/ccidadm/Makefile (revision 15cacbd5271ba21ede8d4c34e75a5547374b3e71)
1a61ed2ceSHans Rosenfeld#
2a61ed2ceSHans Rosenfeld# This file and its contents are supplied under the terms of the
3a61ed2ceSHans Rosenfeld# Common Development and Distribution License ("CDDL"), version 1.0.
4a61ed2ceSHans Rosenfeld# You may only use this file in accordance with the terms of version
5a61ed2ceSHans Rosenfeld# 1.0 of the CDDL.
6a61ed2ceSHans Rosenfeld#
7a61ed2ceSHans Rosenfeld# A full copy of the text of the CDDL should have accompanied this
8a61ed2ceSHans Rosenfeld# source.  A copy of the CDDL is also available via the Internet at
9a61ed2ceSHans Rosenfeld# http://www.illumos.org/license/CDDL.
10a61ed2ceSHans Rosenfeld#
11a61ed2ceSHans Rosenfeld
12a61ed2ceSHans Rosenfeld#
13a61ed2ceSHans Rosenfeld# Copyright 2019, Joyent, Inc.
14*15cacbd5SJoshua M. Clulow# Copyright 2025 Oxide Computer Company
15a61ed2ceSHans Rosenfeld#
16a61ed2ceSHans Rosenfeld
17a61ed2ceSHans RosenfeldPROG= ccidadm
18a61ed2ceSHans Rosenfeld
19a61ed2ceSHans Rosenfeldinclude ../Makefile.cmd
20a61ed2ceSHans Rosenfeldinclude ../Makefile.ctf
2180b758daSAndy Fiddamaninclude $(SRC)/common/hexdump/Makefile.com
22a61ed2ceSHans Rosenfeld
23a61ed2ceSHans RosenfeldCFLAGS += $(CCVERBOSE)
24*15cacbd5SJoshua M. ClulowCSTD = $(CSTD_GNU17)
25a61ed2ceSHans RosenfeldLDLIBS += -lofmt -lcmdutils
2643379a28SAndy FiddamanSRCS = ccidadm.c atr.c hexdump.o ilstr.o
27a61ed2ceSHans RosenfeldOBJS = $(SRCS:%.c=%.o)
28a61ed2ceSHans RosenfeldCPPFLAGS += -I$(SRC)/common/ccid
29a61ed2ceSHans Rosenfeld
30a61ed2ceSHans Rosenfeld.KEEP_STATE:
31a61ed2ceSHans Rosenfeld
32a61ed2ceSHans Rosenfeld$(PROG): $(OBJS)
33a61ed2ceSHans Rosenfeld	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
34a61ed2ceSHans Rosenfeld	$(POST_PROCESS)
35a61ed2ceSHans Rosenfeld
36a61ed2ceSHans Rosenfeld%.o: %.c
37a61ed2ceSHans Rosenfeld	$(COMPILE.c) $<
38a61ed2ceSHans Rosenfeld	$(POST_PROCESS_O)
39a61ed2ceSHans Rosenfeld
40a61ed2ceSHans Rosenfeld%.o: $(SRC)/common/ccid/%.c
41a61ed2ceSHans Rosenfeld	$(COMPILE.c) $<
42a61ed2ceSHans Rosenfeld	$(POST_PROCESS_O)
43a61ed2ceSHans Rosenfeld
44494aa9a4SJoshua M. Clulow%.o: $(SRC)/common/ilstr/%.c
45494aa9a4SJoshua M. Clulow	$(COMPILE.c) $<
46494aa9a4SJoshua M. Clulow	$(POST_PROCESS_O)
47494aa9a4SJoshua M. Clulow
48a61ed2ceSHans Rosenfeldall: $(PROG)
49a61ed2ceSHans Rosenfeld
50a61ed2ceSHans Rosenfeldinstall: all $(ROOTUSRSBINPROG)
51a61ed2ceSHans Rosenfeld
52a61ed2ceSHans Rosenfeldclean:
53a61ed2ceSHans Rosenfeld	$(RM) $(OBJS) $(PROG)
54a61ed2ceSHans Rosenfeld
5580b758daSAndy Fiddamaninclude $(SRC)/common/hexdump/Makefile.targ
56a61ed2ceSHans Rosenfeldinclude ../Makefile.targ
57