xref: /titanic_52/usr/src/lib/libcustr/Makefile.com (revision 1f0c339e39c0c782f9d4c4f3f11d373e24e1d76f)
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#
13# Copyright 2018, Joyent, Inc.
14#
15
16LIBRARY =	libcustr.a
17VERS =		.1
18OBJECTS =	custr.o
19
20include $(SRC)/lib/Makefile.lib
21
22# On some illumos distributions (e.g. SmartOS), utilities in /sbin require
23# custr.  Place libcustr in /lib so such distros can work even if /usr is
24# split onto its own filesystem.
25include $(SRC)/lib/Makefile.rootfs
26
27LIBS =		$(DYNLIB) $(LINTLIB)
28LDLIBS +=	-lc
29CPPFLAGS +=	-D__EXTENSIONS__
30
31SRCDIR =	../common
32$(LINTLIB)	:= SRCS = $(SRCDIR)/$(LINTSRC)
33
34.KEEP_STATE:
35
36all: $(LIBS)
37
38lint: lintcheck
39
40include $(SRC)/lib/Makefile.targ
41