xref: /illumos-gate/usr/src/lib/libmvec/Makefile (revision c686756220120076a07be0dcce54be698101a3d1)
1#
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.
6#
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.
10#
11
12#
13# Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
14#
15
16LIBRARY=	libmvec.a
17VERS=		.1
18
19# include common library definitions
20include $(SRC)/lib/Makefile.lib
21
22COMPS_i386	= i386_hwcap1
23COMPS_sparc	= sparc_sparcv8plus+vis sparc_sparcv9+vis2
24COMPONENTS	= $(COMPS_$(MACH))
25
26COMPS_amd64	=
27COMPS_sparcv9	= sparcv9_sparcv9+vis sparcv9_sparcv9+vis2
28COMPONENTS64	= $(COMPS_$(MACH64))
29
30SUBDIRS		= $(MACH) $(COMPONENTS)
31$(BUILD64)SUBDIRS += $(MACH64) $(COMPONENTS64)
32
33all	:=	TARGET= all
34install	:=	TARGET= install
35clean	:=	TARGET= clean
36clobber	:=	TARGET= clobber
37
38.KEEP_STATE:
39
40.PARALLEL: $(SUBDIRS)
41
42all clean clobber install: $(SUBDIRS)
43
44$(SUBDIRS): FRC
45	@cd $@; pwd; VERSION='$(VERSION)' $(MAKE) $(TARGET)
46
47FRC:
48
49include $(SRC)/lib/Makefile.targ
50