0
|
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 |
#
|
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
|
26 |
#ident "@(#)Makefile.sfw 1.5 09/07/28 SMI"
|
|
27 |
#
|
|
28 |
|
|
29 |
include ../Makefile.cmd
|
|
30 |
|
|
31 |
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
32 |
TARBALL = $(VER).tar.bz2
|
|
33 |
PATCHES:sh = echo Patches/*.patch
|
|
34 |
|
|
35 |
# configure(1) options to use
|
|
36 |
# a default --prefix and --mandir are set in Makefile.master
|
|
37 |
CONFIGURE_OPTIONS += --bindir=/usr/sbin
|
|
38 |
CONFIGURE_OPTIONS += --disable-usr-local
|
|
39 |
CONFIGURE_OPTIONS += --disable-randpkt
|
|
40 |
CONFIGURE_OPTIONS += --disable-dftest
|
|
41 |
CONFIGURE_OPTIONS += --disable-idl2wrs
|
|
42 |
CONFIGURE_OPTIONS += --with-krb5
|
|
43 |
|
|
44 |
SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
|
|
45 |
|
|
46 |
TARGET_ENV += CC="$(CC)"
|
|
47 |
TARGET_ENV += PATH="$(SFW_PATH)"
|
|
48 |
TARGET_ENV += CFLAGS="$(CFLAGS) -I/usr/include/pcre"
|
|
49 |
TARGET_ENV += LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk"
|
|
50 |
TARGET_ENV += MAKE="$(GMAKE)"
|
|
51 |
TARGET_ENV += INSTALL="$(INSTALL_PROTO)"
|
|
52 |
|
|
53 |
all:= TARGET = all
|
|
54 |
install:= TARGET = install
|
|
55 |
|
|
56 |
all: $(VER)/config.status
|
|
57 |
(cd $(VER); env - $(GMAKE) $(TARGET))
|
|
58 |
|
|
59 |
install: install-protofix
|
|
60 |
|
|
61 |
install-target: $(VER)/config.status
|
|
62 |
(cd $(VER); env - $(GMAKE) $(TARGET) DESTDIR=$(ROOT) MANSCRIPT=$(MANSCRIPT))
|
|
63 |
$(RM) $(ROOTLIB)/libwireshark.la
|
|
64 |
$(RM) $(ROOTLIB)/libwiretap.la
|
|
65 |
$(RM) $(ROOTLIB)/libwsutil.la
|
|
66 |
$(RM) $(ROOTLIB)/wireshark/plugins/$(COMPONENT_VERSION:sh)/*.la
|
|
67 |
# install desktop entry
|
|
68 |
$(RM) $(ROOT)/usr/share/applications/wireshark.desktop
|
|
69 |
$(CP) $(VER)/wireshark.desktop $(ROOT)/usr/share/applications/
|
|
70 |
$(RM) $(ROOT)/usr/share/pixmaps/wireshark.png
|
|
71 |
$(CP) $(VER)/image/wsicon64.png $(ROOT)/usr/share/pixmaps/wireshark.png
|
|
72 |
|
|
73 |
install-protofix: install-target
|
|
74 |
for pkg in $(COMPONENT_PACKAGES:sh) ; do \
|
|
75 |
$(SRC)/tools/protofix --pkg $$pkg --perm ; \
|
|
76 |
done
|
|
77 |
|
|
78 |
$(VER)/config.status: $(VER)/.patched
|
|
79 |
(cd $(VER) ; env - ./configure $(CONFIGURE_OPTIONS) $(TARGET_ENV))
|
|
80 |
|
|
81 |
clean:
|
|
82 |
-rm -rf $(VER)
|
|
83 |
|
|
84 |
include ../Makefile.targ
|
|
85 |
|
|
86 |
FRC:
|