xref: /illumos-gate/usr/src/tools/ctf/ctfstrip/Makefile (revision 8226594fdd4479be135127f43632f1f995074654)
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
20CERRWARN += -_gcc=-Wno-unused-variable
21
22OBJS = $(SRCS:%.c=%.o)
23LINTFILES = $(SRCS:%.c=%.ln)
24
25LINTFLAGS = -mnux -L$(ROOT)/usr/lib
26
27.NO_PARALLEL:
28.PARALLEL: $(OBJS) $(LINTFILES)
29
30all: $(PROG)
31
32$(PROG): $(OBJS)
33	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
34	$(POST_PROCESS)
35
36$(ROOTONBLDMACHPROG): $(PROG)
37
38install: $(ROOTONBLDMACHPROG)
39
40clean:
41	$(RM) $(OBJS) $(LINTFILES)
42
43lint: $(LINTFILES)
44	$(LINT) $(LINTFLAGS) $(LINTFILES) $(LDLIBS)
45
46include $(SRC)/tools/Makefile.targ
47