1 #
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.
6 #
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.
10 #
11
12 #
13 # Copyright 2010 Chris Love. All rights reserved.
14 #
15
16
17 PROG= tail
18 XPG4PROG= $(PROG)
19
20 OBJS= forward.o misc.o read.o reverse.o tail.o
21 SRCS= $(OBJS:%.o=%.c)
22
23 include ../Makefile.cmd
24
25 CLOBBERFILES= $(PROG)
26 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
27
28 CSTD= $(CSTD_GNU99)
29 C99LMODE= -Xc99=%all
30 LINTFLAGS += -I. -erroff=E_CONSTANT_CONDITION
31
32 # install rules
33 $(ROOTINC)/% : %
34 $(INS.file)
35
36 .KEEP_STATE:
37
38 .PARALLEL: $(OBJS)
39
40 all: $(PROG)
41
42 $(PROG): $(OBJS)
43 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
44 $(POST_PROCESS)
45
46 install: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG)
47
48 $(ROOTXPG4PROG):
49 -$(RM) $@
50 -$(LN) -s ../../bin/$(PROG) $@
51
|
1 #
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.
6 #
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.
10 #
11
12 #
13 # Copyright 2010 Chris Love. All rights reserved.
14 # Copyright (c) 2018, Joyent, Inc.
15 #
16
17
18 PROG= tail
19 XPG4PROG= $(PROG)
20
21 OBJS= forward.o misc.o read.o reverse.o tail.o
22 SRCS= $(OBJS:%.o=%.c)
23
24 include ../Makefile.cmd
25
26 CLOBBERFILES= $(PROG)
27 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
28
29 CSTD= $(CSTD_GNU99)
30 C99LMODE= -Xc99=%all
31 LINTFLAGS += -I. -erroff=E_CONSTANT_CONDITION
32
33 SMOFF += leaks
34
35 # install rules
36 $(ROOTINC)/% : %
37 $(INS.file)
38
39 .KEEP_STATE:
40
41 .PARALLEL: $(OBJS)
42
43 all: $(PROG)
44
45 $(PROG): $(OBJS)
46 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
47 $(POST_PROCESS)
48
49 install: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG)
50
51 $(ROOTXPG4PROG):
52 -$(RM) $@
53 -$(LN) -s ../../bin/$(PROG) $@
54
|