Makefiles need to specify C99 mode consistently
[unleashed.git] / usr / src / cmd / sgs / m4 / i386 / Makefile
blob6c2c4b38c708ee41afbd4ea5ab6c4f5498340724
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 PROG= m4
28 include ../../../Makefile.cmd
29 include ../../../sgs/Makefile.var
31 OBJS= m4.o m4ext.o m4macs.o m4y_xpg4.o
33 INCLIST= -I../common
34 DEFLIST= -DELF
35 CPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
36 CSTD= $(CSTD_GNU99)
38 CERRWARN += -Wno-parentheses
39 CERRWARN += -Wno-unused-label
40 CERRWARN += -Wno-uninitialized
42 CPPFLAGS += -DXPG4
44 %.o: ../common/%.c
45 $(COMPILE.c) -o $@ $<
47 .KEEP_STATE:
49 all: $(PROG)
51 $(PROG): $(OBJS)
52 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
53 $(POST_PROCESS)
56 install: all $(VAR_SGSBINPROG)
58 clean:
59 $(RM) $(OBJS)
61 include ../../../Makefile.targ