xref: /illumos-gate/usr/src/lib/libaio/Makefile.com (revision 004388eb)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY=	libaio.a
29VERS=		.1
30
31COBJS= 		aio.o	\
32		posix_aio.o	\
33		scalls.o	\
34		sig.o	\
35		subr.o	\
36		ma.o
37
38OBJECTS=	$(COBJS) $(MOBJS)
39
40include ../../Makefile.lib
41include ../../Makefile.rootfs
42
43SRCS=		$(COBJS:%.o=../common/%.c)
44
45LIBS =		$(DYNLIB) $(LINTLIB)
46LDLIBS +=	-lc
47$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
48
49SRCDIR =	../common
50MAPDIR =	../spec/$(TRANSMACH)
51SPECMAPFILE =	$(MAPDIR)/mapfile
52
53# Setting LIBAIO_DEBUG = -DDEBUG (make LIBAIO_DEBUG=-DDEBUG ...)
54# enables ASSERT() checking and other verification in the library.
55# This is automatically enabled for DEBUG builds, not for non-debug builds.
56LIBAIO_DEBUG =
57$(NOT_RELEASE_BUILD)LIBAIO_DEBUG = -DDEBUG
58
59CFLAGS +=	$(CCVERBOSE)
60CPPFLAGS +=	$(LIBAIO_DEBUG) -D_REENTRANT -I.. -I$(SRCDIR) -I../../common/inc
61
62DYNFLAGS +=	$(ZINTERPOSE)
63
64.KEEP_STATE:
65
66all: $(LIBS) fnamecheck
67
68lint: lintcheck
69
70include ../../Makefile.targ
71
72pics/%.o: $(MDIR)/%.s
73	$(BUILD.s)
74	$(POST_PROCESS_O)
75