Makefiles need to specify C99 mode consistently
[unleashed.git] / usr / src / cmd / tr / Makefile
blob85ae6c4cfb7babfd091ea6f181092747d40c0665
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
9 # at http://www.illumos.org/license/CDDL.
13 # Copyright 2010 Nexenta Systems, Inc. All rights reserved.
17 PROG= tr
19 OBJS= tr.o str.o cset.o cmap.o
20 SRCS= $(OBJS:%.o=%.c)
22 include ../Makefile.cmd
24 CLOBBERFILES= $(PROG)
27 CSTD= $(CSTD_GNU99)
28 CPPFLAGS += -D_ILLUMOS_PRIVATE -I.
30 # install rules
31 $(ROOTINC)/% : %
32 $(INS.file)
34 .KEEP_STATE:
36 .PARALLEL: $(OBJS)
38 all: $(PROG)
40 $(PROG): $(OBJS)
41 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
42 $(POST_PROCESS)
44 install: all .WAIT $(ROOTPROG)
47 clean:
48 $(RM) $(OBJS)
50 include ../Makefile.targ