Makefiles need to specify C99 mode consistently
[unleashed.git] / usr / src / test / os-tests / tests / sigqueue / Makefile
blob75b0d525dc07771e603317a8dd7cfc2d9ed9b6a6
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 (c) 2012 by Delphix. All rights reserved.
14 # Copyright (c) 2013 David Hoeppner. All rights reserved.
17 include $(SRC)/cmd/Makefile.cmd
18 include $(SRC)/test/Makefile.com
20 PROG = sigqueue_queue_size
21 OBJS = $(PROG:%=%.o)
22 SRCS = $(OBJS:%.o=%.c)
24 CSTD = $(CSTD_GNU99)
26 ROOTOPTPKG = $(ROOT)/opt/os-tests
27 TESTDIR = $(ROOTOPTPKG)/tests/sigqueue
29 CMDS = $(PROG:%=$(TESTDIR)/%)
30 $(CMDS) := FILEMODE = 0555
32 all: $(PROG)
34 $(PROG): $(OBJS)
35 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
36 $(POST_PROCESS)
38 %.o: ../%.c
39 $(COMPILE.c) $<
41 install: all $(CMDS)
43 clobber: clean
44 -$(RM) $(PROG)
46 clean:
47 -$(RM) $(OBJS)
49 $(CMDS): $(TESTDIR) $(PROG)
51 $(TESTDIR):
52 $(INS.dir)
54 $(TESTDIR)/%: %
55 $(INS.file)