8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / od / Makefile
blobce45b2db8cefbbdacb3609f106b274905e256d3a
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 of 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 of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2010 Nexenta Systems, Inc. All rights reserved.
15 PROG= od
16 XPG4PROG= $(PROG)
18 OBJS= od.o
19 SRCS= $(OBJS:%.o=%.c)
21 include ../Makefile.cmd
23 CLOBBERFILES= $(PROG)
26 C99MODE= -xc99=%all
27 C99LMODE= -Xc99=%all
28 CPPFLAGS += -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
29 LINTFLAGS += -D__EXTENSIONS__
31 # install rules
32 $(ROOTINC)/% : %
33 $(INS.file)
35 .KEEP_STATE:
37 .PARALLEL: $(OBJS)
39 all: $(PROG)
41 $(PROG): $(OBJS)
42 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
43 $(POST_PROCESS)
45 install: all .WAIT $(ROOTPROG) $(ROOTXPG4PROG)
47 $(ROOTXPG4PROG):
48 -$(RM) $@
49 -$(LN) -s ../../bin/$(PROG) $@
51 lint: lint_SRCS
53 clean:
54 $(RM) $(OBJS)
56 include ../Makefile.targ