Merge illumos-gate
[unleashed/lotheac.git] / usr / src / lib / mpapi / libmpapi / Makefile.com
blobf1c00332c11fbacd5c2535d9f11dbafbfafb4437
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 2009 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
25 # Copyright (c) 2018, Joyent, Inc.
27 LIBRARY=        libMPAPI.a
28 VERS=           .1
29 OBJECTS=        mpapi.o mpapi-sun.o
31 include ../../../Makefile.lib
32 include ../../../Makefile.rootfs
34 SRCDIR =        ../common
36 LIBS =          $(DYNLIB)
37 LDLIBS +=       -lc
40 CPPFLAGS +=     -I$(SRCDIR) -D_POSIX_PTHREAD_SEMANTICS
41 CPPFLAGS +=     -DBUILD_TIME='"Wed Sep 24 12:00:00 2008"'
42 DYNFLAGS +=     -Wl,-zfiniarray=ExitLibrary
43 DYNFLAGS +=     -Wl,-zinitarray=InitLibrary
45 CERRWARN +=     -Wno-type-limits
46 CERRWARN +=     -Wno-unused-variable
47 CERRWARN +=     -Wno-uninitialized
49 # not linted
50 SMATCH=off
52 ROOTETC =       $(ROOT)/etc
53 CONFDIR =       ../common
54 CONFFILE =      $(CONFDIR)/mpapi.conf
55 IETCFILES =     $(CONFFILE:$(CONFDIR)/%=$(ROOTETC)/%)
56 $(IETCFILES) := FILEMODE = 0644
58 .KEEP_STATE:
60 all: $(LIBS) $(IETCFILES)
63 $(ROOTETC)/%:   $(CONFDIR)/%
64         $(INS.file)
66 include ../../../Makefile.targ