Makefiles need to specify C99 mode consistently
[unleashed.git] / usr / src / cmd / tail / Makefile
blob1987c23a9187e19cc2edc87af1a64fb21c828079
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 CSTD= $(CSTD_GNU99)
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