Makefiles need to specify C99 mode consistently
[unleashed.git] / usr / src / test / os-tests / tests / file-locking / Makefile
blob626fd16bcc2ba326f1c7810c863d80f61c9918c8
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 2016 Joyent, Inc.
16 include $(SRC)/cmd/Makefile.cmd
17 include $(SRC)/test/Makefile.com
19 OBJECTS=util.o runtests.32.o runtests.64.o acquire-lock.32.o acquire-lock.64.o
21 PROGS = \
22 runtests \
23 acquire-lock
25 CSTD = $(CSTD_GNU99)
27 SRCS = $(PROGS:%=%.c) $(UTILS:%.o=%.c)
28 PROGS32 = $(PROGS:%=%.32)
29 PROGS64 = $(PROGS:%=%.64)
31 ROOTOPTDIR = $(ROOT)/opt/os-tests/tests/file-locking
32 ROOTOPTPROGS = $(PROGS32:%=$(ROOTOPTDIR)/%) \
33 $(PROGS64:%=$(ROOTOPTDIR)/%)
35 .KEEP_STATE:
37 install: $(ROOTOPTPROGS)
39 all: $(PROGS32) $(PROGS64)
41 clean:
42 -rm $(PROGS32) $(PROGS64)
44 $(ROOTOPTPROGS): $(PROGS32) $(PROGS64) $(ROOTOPTDIR)
46 $(ROOTOPTDIR):
47 $(INS.dir)
49 $(ROOTOPTDIR)/%: %
50 $(INS.file)
52 $(ROOTOPTDIR)/%: %.ksh
53 $(INS.rename)
55 %.64.o: %.c
56 $(COMPILE64.c) $< -o $@
58 %.32.o: %.c
59 $(COMPILE.c) $< -o $@
61 %.64: %.64.o util.64.o
62 $(LINK64.c) -o $@ $< util.64.o $(LDLIBS64)
63 $(POST_PROCESS)
65 %.32: %.32.o util.32.o
66 $(LINK.c) -o $@ $< util.32.o $(LDLIBS)
67 $(POST_PROCESS)
69 clobber:
70 $(RM) $(PROGS32) $(PROGS64)
72 FRC: