1500cf85bSJason King# 2500cf85bSJason King# This file and its contents are supplied under the terms of the 3500cf85bSJason King# Common Development and Distribution License ("CDDL"), version 1.0. 4500cf85bSJason King# You may only use this file in accordance with the terms of version 5500cf85bSJason King# 1.0 of the CDDL. 6500cf85bSJason King# 7500cf85bSJason King# A full copy of the text of the CDDL should have accompanied this 8500cf85bSJason King# source. A copy of the CDDL is also available via the Internet at 9500cf85bSJason King# http://www.illumos.org/license/CDDL. 10500cf85bSJason King# 11500cf85bSJason King 12500cf85bSJason King# 13500cf85bSJason King# Copyright 2018, Joyent, Inc. 14500cf85bSJason King# 15500cf85bSJason King 16500cf85bSJason KingLIBRARY = libcustr.a 17500cf85bSJason KingVERS = .1 18500cf85bSJason KingOBJECTS = custr.o 19500cf85bSJason King 20500cf85bSJason Kinginclude $(SRC)/lib/Makefile.lib 21500cf85bSJason King 22500cf85bSJason King# On some illumos distributions (e.g. SmartOS), utilities in /sbin require 23500cf85bSJason King# custr. Place libcustr in /lib so such distros can work even if /usr is 24500cf85bSJason King# split onto its own filesystem. 25500cf85bSJason Kinginclude $(SRC)/lib/Makefile.rootfs 26500cf85bSJason King 27*241c90a0SRichard LoweLIBS = $(DYNLIB) 28500cf85bSJason KingLDLIBS += -lc 29500cf85bSJason KingCPPFLAGS += -D__EXTENSIONS__ 30500cf85bSJason King 31500cf85bSJason KingSRCDIR = ../common 32500cf85bSJason King 33500cf85bSJason King.KEEP_STATE: 34500cf85bSJason King 35500cf85bSJason Kingall: $(LIBS) 36500cf85bSJason King 37500cf85bSJason King 38500cf85bSJason Kinginclude $(SRC)/lib/Makefile.targ 39