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