xref: /titanic_50/usr/src/lib/libcustr/Makefile.com (revision 1f0c339e39c0c782f9d4c4f3f11d373e24e1d76f)
1*1f0c339eSJason King#
2*1f0c339eSJason King# This file and its contents are supplied under the terms of the
3*1f0c339eSJason King# Common Development and Distribution License ("CDDL"), version 1.0.
4*1f0c339eSJason King# You may only use this file in accordance with the terms of version
5*1f0c339eSJason King# 1.0 of the CDDL.
6*1f0c339eSJason King#
7*1f0c339eSJason King# A full copy of the text of the CDDL should have accompanied this
8*1f0c339eSJason King# source.  A copy of the CDDL is also available via the Internet at
9*1f0c339eSJason King# http://www.illumos.org/license/CDDL.
10*1f0c339eSJason King#
11*1f0c339eSJason King
12*1f0c339eSJason King#
13*1f0c339eSJason King# Copyright 2018, Joyent, Inc.
14*1f0c339eSJason King#
15*1f0c339eSJason King
16*1f0c339eSJason KingLIBRARY =	libcustr.a
17*1f0c339eSJason KingVERS =		.1
18*1f0c339eSJason KingOBJECTS =	custr.o
19*1f0c339eSJason King
20*1f0c339eSJason Kinginclude $(SRC)/lib/Makefile.lib
21*1f0c339eSJason King
22*1f0c339eSJason King# On some illumos distributions (e.g. SmartOS), utilities in /sbin require
23*1f0c339eSJason King# custr.  Place libcustr in /lib so such distros can work even if /usr is
24*1f0c339eSJason King# split onto its own filesystem.
25*1f0c339eSJason Kinginclude $(SRC)/lib/Makefile.rootfs
26*1f0c339eSJason King
27*1f0c339eSJason KingLIBS =		$(DYNLIB) $(LINTLIB)
28*1f0c339eSJason KingLDLIBS +=	-lc
29*1f0c339eSJason KingCPPFLAGS +=	-D__EXTENSIONS__
30*1f0c339eSJason King
31*1f0c339eSJason KingSRCDIR =	../common
32*1f0c339eSJason King$(LINTLIB)	:= SRCS = $(SRCDIR)/$(LINTSRC)
33*1f0c339eSJason King
34*1f0c339eSJason King.KEEP_STATE:
35*1f0c339eSJason King
36*1f0c339eSJason Kingall: $(LIBS)
37*1f0c339eSJason King
38*1f0c339eSJason Kinglint: lintcheck
39*1f0c339eSJason King
40*1f0c339eSJason Kinginclude $(SRC)/lib/Makefile.targ
41