xref: /titanic_50/usr/src/tools/ctf/ctfstrip/Makefile (revision 3fc1e28905f8d0b151f1f359d523492bed5a20f2)
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.KEEP_STATE:
13
14PROG = ctfstrip
15SRCS = \
16	ctfstrip.c
17
18CFLAGS += $(CCVERBOSE)
19include $(SRC)/tools/Makefile.tools
20
21OBJS = $(SRCS:%.c=%.o)
22LINTFILES = $(SRCS:%.c=%.ln)
23
24LINTFLAGS = -mnux -L$(ROOT)/usr/lib
25
26.NO_PARALLEL:
27.PARALLEL: $(OBJS) $(LINTFILES)
28
29all: $(PROG)
30
31$(PROG): $(OBJS)
32	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
33	$(POST_PROCESS)
34
35$(ROOTONBLDMACHPROG): $(PROG)
36
37install: $(ROOTONBLDMACHPROG)
38
39clean:
40	$(RM) $(OBJS) $(LINTFILES)
41
42lint: $(LINTFILES)
43	$(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
44
45include $(SRC)/tools/Makefile.targ
46