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
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
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
)/%)
37 install: $(ROOTOPTPROGS
)
39 all: $(PROGS32
) $(PROGS64
)
42 -rm $(PROGS32
) $(PROGS64
)
44 $(ROOTOPTPROGS
): $(PROGS32
) $(PROGS64
) $(ROOTOPTDIR
)
52 $(ROOTOPTDIR
)/%: %.ksh
56 $(COMPILE64.c
) $< -o
$@
61 %.64: %.64.o util
.64.o
62 $(LINK64.c
) -o
$@
$< util
.64.o
$(LDLIBS64
)
65 %.32: %.32.o util
.32.o
66 $(LINK.c
) -o
$@
$< util
.32.o
$(LDLIBS
)
70 $(RM
) $(PROGS32
) $(PROGS64
)