xref: /illumos-gate/usr/src/cmd/demangle/Makefile (revision d52aae2365749461c362fde5a4c1a26a620cfbd3)
1*d52aae23SJason King#
2*d52aae23SJason King# This file and its contents are supplied under the terms of the
3*d52aae23SJason King# Common Development and Distribution License ("CDDL"), version 1.0.
4*d52aae23SJason King# You may only use this file in accordance with the terms of version
5*d52aae23SJason King# 1.0 of the CDDL.
6*d52aae23SJason King#
7*d52aae23SJason King# A full copy of the text of the CDDL should have accompanied this
8*d52aae23SJason King# source.  A copy of the CDDL is also available via the Internet at
9*d52aae23SJason King# http://www.illumos.org/license/CDDL.
10*d52aae23SJason King#
11*d52aae23SJason King
12*d52aae23SJason King#
13*d52aae23SJason King# Copyright 2020 Joyent, Inc.
14*d52aae23SJason King#
15*d52aae23SJason King
16*d52aae23SJason KingPROG=		demangle
17*d52aae23SJason KingOBJS=		demangle.o
18*d52aae23SJason KingSRCS=		$(OBJS:%.o=%.c)
19*d52aae23SJason King
20*d52aae23SJason Kinginclude		$(SRC)/cmd/Makefile.cmd
21*d52aae23SJason Kinginclude		$(SRC)/cmd/Makefile.ctf
22*d52aae23SJason King
23*d52aae23SJason KingCSTD=	$(CSTD_GNU99)
24*d52aae23SJason King
25*d52aae23SJason KingLDLIBS +=	-ldemangle-sys -lcustr
26*d52aae23SJason King
27*d52aae23SJason King.KEEP_STATE:
28*d52aae23SJason King
29*d52aae23SJason Kingall:		$(PROG)
30*d52aae23SJason King
31*d52aae23SJason King$(PROG):	$(OBJS)
32*d52aae23SJason King		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
33*d52aae23SJason King		$(POST_PROCESS)
34*d52aae23SJason King
35*d52aae23SJason Kingclean:
36*d52aae23SJason King		$(RM) $(OBJS)
37*d52aae23SJason King
38*d52aae23SJason Kinginstall:	all $(ROOTPROG)
39*d52aae23SJason King
40*d52aae23SJason Kinginclude		$(SRC)/cmd/Makefile.targ
41