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
23 #
24 # Copyright 2008 Sun Microsystems, Inc. All rights reserved
25 # Use is subject to license terms
26 #
27
28 VER=snort-2.8.0.2
29
30 # VERDIR and the BUILDDIR bit is because snort is going
31 # to do this for some of it's libraries even without
32 # being told to 'make install':
33 # all-local:
34 # $(MAKE) DESTDIR=$(PWD)/../build install-libLTLIBRARIES
35 # But PWD may be in the environment and thus override that,
36 # causing it to be placed in usr (as in usr/src) or in usr/src/cmd
37 # or elsewhere depending on where you where when you (or nightly)
38 # ran make. And actually if it's not set in the environment it
39 # happily tries to install in /. Fun.
40
41 VERDIR=$(SRC)/cmd/snort/$(VER)
42
43 BUILDDIR=$(VERDIR)/build
44
45 README=README.SFWsnort
46
47 all: $(VER)/config.status
48 (cd $(VER); env \
58 install: all .WAIT $(ROOTREADME)
59 $(SH) ./install-sfw
60
61 $(VER)/config.status: $(VER)/configure
62 (cd $(VER); env \
63 CC=$(SRC)/tools/gcc CXX=$(SRC)/tools/g++ \
64 MAKE=/usr/sfw/bin/gmake \
65 INSTALL=/opt/sfw/bin/install \
66 ./configure --prefix=/opt/sfw \
67 --with-libpcap-includes=/opt/sfw/include \
68 --with-libpcap-libraries=/opt/sfw/lib)
69
70 $(VER)/configure: $(VER).tar.gz
71 gzip -dc $(VER).tar.gz | tar xpf -
72 touch $(VER)/configure
73
74 clean:
75 -rm -rf $(VER)
76
77 include ../Makefile.targ
78
79 .SUFFIXES:
80
81 FRC:
|
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
23 #
24 # Copyright 2009 Sun Microsystems, Inc. All rights reserved
25 # Use is subject to license terms
26 #
27
28 VER=snort-2.8.4.1
29
30 # VERDIR and the BUILDDIR bit is because snort is going
31 # to do this for some of it's libraries even without
32 # being told to 'make install':
33 # all-local:
34 # $(MAKE) DESTDIR=$(PWD)/../build install-libLTLIBRARIES
35 # But PWD may be in the environment and thus override that,
36 # causing it to be placed in usr (as in usr/src) or in usr/src/cmd
37 # or elsewhere depending on where you where when you (or nightly)
38 # ran make. And actually if it's not set in the environment it
39 # happily tries to install in /. Fun.
40
41 VERDIR=$(SRC)/cmd/snort/$(VER)
42
43 BUILDDIR=$(VERDIR)/build
44
45 README=README.SFWsnort
46
47 all: $(VER)/config.status
48 (cd $(VER); env \
58 install: all .WAIT $(ROOTREADME)
59 $(SH) ./install-sfw
60
61 $(VER)/config.status: $(VER)/configure
62 (cd $(VER); env \
63 CC=$(SRC)/tools/gcc CXX=$(SRC)/tools/g++ \
64 MAKE=/usr/sfw/bin/gmake \
65 INSTALL=/opt/sfw/bin/install \
66 ./configure --prefix=/opt/sfw \
67 --with-libpcap-includes=/opt/sfw/include \
68 --with-libpcap-libraries=/opt/sfw/lib)
69
70 $(VER)/configure: $(VER).tar.gz
71 gzip -dc $(VER).tar.gz | tar xpf -
72 touch $(VER)/configure
73
74 clean:
75 -rm -rf $(VER)
76
77 include ../Makefile.targ
|