9762 Split the custr functions into their own library
[unleashed.git] / usr / src / lib / libcustr / Makefile.com
blobcbd61ece4b7d01a0888dc600bbf2fcb22343b17d
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.
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.
13 # Copyright 2018, Joyent, Inc.
16 LIBRARY =       libcustr.a
17 VERS =          .1
18 OBJECTS =       custr.o
20 include $(SRC)/lib/Makefile.lib
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.
25 include $(SRC)/lib/Makefile.rootfs
27 LIBS =          $(DYNLIB) $(LINTLIB)
28 LDLIBS +=       -lc
29 CPPFLAGS +=     -D__EXTENSIONS__
31 SRCDIR =        ../common
32 $(LINTLIB)      := SRCS = $(SRCDIR)/$(LINTSRC)
34 .KEEP_STATE:
36 all: $(LIBS)
38 lint: lintcheck
40 include $(SRC)/lib/Makefile.targ