Makefile revision 3661
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# CDDL HEADER START
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# The contents of this file are subject to the terms of the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Common Development and Distribution License (the "License").
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# You may not use this file except in compliance with the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# or http://www.opensolaris.org/os/licensing.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# See the License for the specific language governing permissions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# and limitations under the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# When distributing Covered Code, include this CDDL HEADER in each
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# If applicable, add the following below this CDDL HEADER, with the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# fields enclosed by brackets "[]" replaced with your own identifying
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# information: Portions Copyright [yyyy] [name of copyright owner]
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# CDDL HEADER END
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinclude ../../make-rules/shared-macros.mk
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCOMPONENT_NAME= snort
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren KennedyCOMPONENT_VERSION= 2.8.4.1
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCOMPONENT_ARCHIVE_HASH= \
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy sha256:ee7f790eb3df4e6156a7c865f1ba22855394c9e3c13fdc57d60a8647267fc209
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCOMPONENT_PROJECT_URL= http://www.snort.org/
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# the main site does not retain older releases
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCOMPONENT_ARCHIVE_URL= http://mirror2.openwrt.org/sources/$(COMPONENT_ARCHIVE)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCOMPONENT_BUGDB= utility/snort
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyTPNO= 9027
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinclude ../../make-rules/prep.mk
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinclude ../../make-rules/configure.mk
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinclude ../../make-rules/ips.mk
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyPATCH_LEVEL = 0
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# without this we bus error on sparc. sadly I don't see any patches
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# that might relate from the upstream (though maybe that's really
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# "happily", as this is simpler)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedystudio_ALIGN.sparc.32= -xmemalign=1i
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCONFIGURE_OPTIONS += --with-libpcre=included
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren KennedyCONFIGURE_OPTIONS += --with-libpcap=/usr
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCONFIGURE_OPTIONS += --enable-static=no
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy# common targets
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedybuild: $(BUILD_32)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinstall: $(INSTALL_32)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedytest: $(NO_TESTS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren KennedyBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyinclude ../../make-rules/depend.mk
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy