Makefile revision 3433
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").
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# You may not use this file except in compliance with the License.
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco#
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
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# and limitations under the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
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, 2014, Oracle and/or its affiliates. All rights reserved.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray#
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinclude ../../make-rules/shared-macros.mk
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal
d961aa46ea0d50fed47802497e45226b1965b12dVladimir KotalCOMPONENT_NAME= daq
d961aa46ea0d50fed47802497e45226b1965b12dVladimir KotalCOMPONENT_VERSION= 2.0.2
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PROJECT_URL= http://www.snort.org/
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos KoscoCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos KoscoCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos KoscoCOMPONENT_ARCHIVE_HASH= \
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco sha256:d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/snort/files/snort/$(COMPONENT_ARCHIVE)/download
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_BUGDB= library/daq
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayTPNO= 19384
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotalinclude ../../make-rules/prep.mk
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotalinclude ../../make-rules/configure.mk
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinclude ../../make-rules/ips.mk
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Solaris should really define these. See CR #15431883 and 15537286.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCFLAGS += -Du_int8_t=uint8_t
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCFLAGS += -Du_int16_t=uint16_t
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCFLAGS += -Du_int32_t=uint32_t
65df1e87266301e243dcead8082ca6255abea666Vladimir Kotal
65df1e87266301e243dcead8082ca6255abea666Vladimir Kotal# Set -m32 or -m64 correctly for 32 and 64 bit versions.
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir KotalCC += $(CC_BITS)
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir Kotal
65df1e87266301e243dcead8082ca6255abea666Vladimir KotalCONFIGURE_OPTIONS += --disable-ipfw-module
65df1e87266301e243dcead8082ca6255abea666Vladimir KotalCONFIGURE_OPTIONS += --enable-static=no
65df1e87266301e243dcead8082ca6255abea666Vladimir KotalCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalASLR_MODE = $(ASLR_NOT_APPLICABLE)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# common targets
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotalbuild: $(BUILD_32_and_64)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smetinstall: $(INSTALL_32_and_64)
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume Smet
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotaltest: $(NO_TESTS)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotalinclude ../../make-rules/depend.mk
83439b4ed8fe40097dc3f2c05168d26bd7926159Vladimir Kotal