xref: /illumos-gate/usr/src/cmd/etdump/Makefile (revision 5661bb76)
1c0455f33SToomas Soome#
2c0455f33SToomas Soome# This file and its contents are supplied under the terms of the
3c0455f33SToomas Soome# Common Development and Distribution License ("CDDL"), version 1.0.
4c0455f33SToomas Soome# You may only use this file in accordance with the terms of version
5c0455f33SToomas Soome# 1.0 of the CDDL.
6c0455f33SToomas Soome#
7c0455f33SToomas Soome# A full copy of the text of the CDDL should have accompanied this
8c0455f33SToomas Soome# source.  A copy of the CDDL is also available via the Internet at
9c0455f33SToomas Soome# http://www.illumos.org/license/CDDL.
10c0455f33SToomas Soome#
11c0455f33SToomas Soome
12c0455f33SToomas Soome#
13916bf6b9SToomas Soome# Copyright 2019 Toomas Soome <tsoome@me.com>
14*5661bb76SJohn Levon# Copyright (c) 2019, Joyent, Inc.
15c0455f33SToomas Soome#
16c0455f33SToomas Soome
17c0455f33SToomas SoomePROG=	etdump
18916bf6b9SToomas SoomeOBJS=	etdump.o output_shell.o output_text.o
19c0455f33SToomas SoomeSRCS=	$(OBJS:%.o=%.c)
20c0455f33SToomas Soome
21c0455f33SToomas Soomeinclude ../Makefile.cmd
22c0455f33SToomas Soome
23*5661bb76SJohn Levon# comes from FreeBSD upstream
24*5661bb76SJohn LevonSMOFF += all_func_returns
25*5661bb76SJohn Levon
26c0455f33SToomas Soome.KEEP_STATE:
27c0455f33SToomas Soome
28c0455f33SToomas Soomeall: $(PROG)
29c0455f33SToomas Soome
30c0455f33SToomas Soomeinstall: all $(ROOTPROG)
31c0455f33SToomas Soome
32c0455f33SToomas Soomeclean:
33c0455f33SToomas Soome	$(RM) $(OBJS)
34c0455f33SToomas Soome
35c0455f33SToomas Soome$(PROG):	$(OBJS)
36c0455f33SToomas Soome	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
37c0455f33SToomas Soome	$(POST_PROCESS)
38c0455f33SToomas Soome
39c0455f33SToomas Soomelint:
40c0455f33SToomas Soome
41c0455f33SToomas Soomeinclude ../Makefile.targ
42