xref: /illumos-gate/usr/src/cmd/ccidadm/Makefile (revision b02947bf393d39f68e6c7fa8ccb98688f7f9c407)
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 2019, Joyent, Inc.
14#
15
16PROG= ccidadm
17
18include ../Makefile.cmd
19include ../Makefile.ctf
20
21CFLAGS += $(CCVERBOSE)
22LDLIBS += -lofmt -lcmdutils
23SRCS = ccidadm.c atr.c
24OBJS = $(SRCS:%.c=%.o)
25CPPFLAGS += -I$(SRC)/common/ccid
26
27.KEEP_STATE:
28
29$(PROG): $(OBJS)
30	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
31	$(POST_PROCESS)
32
33%.o: %.c
34	$(COMPILE.c) $<
35	$(POST_PROCESS_O)
36
37%.o: $(SRC)/common/ccid/%.c
38	$(COMPILE.c) $<
39	$(POST_PROCESS_O)
40
41all: $(PROG)
42
43install: all $(ROOTUSRSBINPROG)
44
45clean:
46	$(RM) $(OBJS) $(PROG)
47
48include ../Makefile.targ
49