Makefile revision 1768
cd348e325366620fe047edcc849e3c9424828599Peter Bray#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# CDDL HEADER START
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco#
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The contents of this file are subject to the terms of the
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Common Development and Distribution License (the "License").
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You may not use this file except in compliance with the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# or http://www.opensolaris.org/os/licensing.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# See the License for the specific language governing permissions
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# and limitations under the License.
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# When distributing Covered Code, include this CDDL HEADER in each
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# If applicable, add the following below this CDDL HEADER, with the
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# fields enclosed by brackets "[]" replaced with your own identifying
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# information: Portions Copyright [yyyy] [name of copyright owner]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# CDDL HEADER END
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinclude ../../make-rules/shared-macros.mk
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_NAME= daq
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_VERSION= 0.6.2
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PROJECT_URL= http://www.snort.org/
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE_HASH= \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray sha256:0159865b5dc127ed2faf8d6732d781939f27e38b7c7deabcd369a22ea9e42f26
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)downloads/1525
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos KoscoCOMPONENT_BUGDB= library/daq
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos Kosco
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscoinclude ../../make-rules/prep.mk
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscoinclude ../../make-rules/configure.mk
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Brayinclude ../../make-rules/ips.mk
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# Solaris should really define these. See CR #15431883 and 15537286.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCFLAGS += -Du_int8_t=uint8_t
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos KoscoCFLAGS += -Du_int16_t=uint16_t
cd348e325366620fe047edcc849e3c9424828599Peter BrayCFLAGS += -Du_int32_t=uint32_t
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Set -m32 or -m64 correctly for 32 and 64 bit versions.
cd348e325366620fe047edcc849e3c9424828599Peter BrayCC += $(CC_BITS)
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_OPTIONS += --enable-static=no
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayASLR_MODE = $(ASLR_ENABLE)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# common targets
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Koscobuild: $(BUILD_32_and_64)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinstall: $(INSTALL_32_and_64)
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco
cd348e325366620fe047edcc849e3c9424828599Peter Braytest: $(NO_TESTS)
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter BrayBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
cd348e325366620fe047edcc849e3c9424828599Peter Bray
cd348e325366620fe047edcc849e3c9424828599Peter Brayinclude ../../make-rules/depend.mk
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray