Merge commit '37e84ab74e939caf52150fc3352081786ecc0c29' into merges
[unleashed.git] / usr / src / cmd / tail / Makefile
blob5f9b98c5e946ffef1731894768ab38ac65047339
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 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 is of the CDDL is also available via the Internet
9 # at http://www.illumos.org/license/CDDL.
13 # Copyright 2010 Chris Love. All rights reserved.
17 PROG= tail
19 OBJS= forward.o misc.o read.o reverse.o tail.o
20 SRCS= $(OBJS:%.o=%.c)
22 include ../Makefile.cmd
24 CLOBBERFILES= $(PROG)
25 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
27 C99MODE= $(C99_ENABLE)
29 # install rules
30 $(ROOTINC)/% : %
31 $(INS.file)
33 .KEEP_STATE:
35 .PARALLEL: $(OBJS)
37 all: $(PROG)
39 $(PROG): $(OBJS)
40 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
41 $(POST_PROCESS)
43 install: all .WAIT $(ROOTPROG)
46 clean:
47 $(RM) $(OBJS)
49 include ../Makefile.targ