1209e49b2SChris Love# 2209e49b2SChris Love# This file and its contents are supplied under the terms of the 3209e49b2SChris Love# Common Development and Distribution License ("CDDL"), version 1.0. 4209e49b2SChris Love# You may only use this file in accordance with the terms version 5209e49b2SChris Love# 1.0 of the CDDL. 6209e49b2SChris Love# 7209e49b2SChris Love# A full copy of the text of the CDDL should have accompanied this 8209e49b2SChris Love# source. A copy is of the CDDL is also available via the Internet 9209e49b2SChris Love# at http://www.illumos.org/license/CDDL. 10209e49b2SChris Love# 11209e49b2SChris Love 12209e49b2SChris Love# 13209e49b2SChris Love# Copyright 2010 Chris Love. All rights reserved. 14209e49b2SChris Love# 15209e49b2SChris Love 16209e49b2SChris Love 17209e49b2SChris LovePROG= tail 18209e49b2SChris LoveXPG4PROG= $(PROG) 19209e49b2SChris Love 20209e49b2SChris LoveOBJS= forward.o misc.o read.o reverse.o tail.o 21209e49b2SChris LoveSRCS= $(OBJS:%.o=%.c) 22209e49b2SChris Love 23209e49b2SChris Loveinclude ../Makefile.cmd 24209e49b2SChris Love 25209e49b2SChris LoveCLOBBERFILES= $(PROG) 26*979bfc6bSRichard LoweCPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 27209e49b2SChris Love 28209e49b2SChris LoveC99MODE= -xc99=%all 29209e49b2SChris LoveC99LMODE= -Xc99=%all 30209e49b2SChris LoveLINTFLAGS += -I. -erroff=E_CONSTANT_CONDITION 31209e49b2SChris Love 32209e49b2SChris Love# install rules 33209e49b2SChris Love$(ROOTINC)/% : % 34209e49b2SChris Love $(INS.file) 35209e49b2SChris Love 36209e49b2SChris Love.KEEP_STATE: 37209e49b2SChris Love 38209e49b2SChris Love.PARALLEL: $(OBJS) 39209e49b2SChris Love 40209e49b2SChris Loveall: $(PROG) 41209e49b2SChris Love 42209e49b2SChris Love$(PROG): $(OBJS) 43209e49b2SChris Love $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 44209e49b2SChris Love $(POST_PROCESS) 45209e49b2SChris Love 46209e49b2SChris Loveinstall: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG) 47209e49b2SChris Love 48209e49b2SChris Love$(ROOTXPG4PROG): 49209e49b2SChris Love -$(RM) $@ 50209e49b2SChris Love -$(LN) -s ../../bin/$(PROG) $@ 51209e49b2SChris Love 52209e49b2SChris Lovelint: lint_SRCS 53209e49b2SChris Love 54209e49b2SChris Loveclean: 55209e49b2SChris Love $(RM) $(OBJS) 56209e49b2SChris Love 57209e49b2SChris Loveinclude ../Makefile.targ 58