xref: /illumos-gate/usr/src/lib/libcustr/Makefile.com (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
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)
28LDLIBS +=	-lc
29CPPFLAGS +=	-D__EXTENSIONS__
30
31SRCDIR =	../common
32
33.KEEP_STATE:
34
35all: $(LIBS)
36
37
38include $(SRC)/lib/Makefile.targ
39