usr/src/cmd/wireshark/Makefile.sfw
changeset 62 aa9ba7d986b5
parent 9 502b128296a2
equal deleted inserted replaced
61:2b866601157f 62:aa9ba7d986b5
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
    23 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
    24 # Use is subject to license terms.
       
    25 #
    24 #
    26 #ident	"@(#)Makefile.sfw	1.7	10/02/19 SMI"
    25 #ident	"@(#)Makefile.sfw	1.8	10/12/22 SMI"
    27 #
    26 #
    28 
    27 
    29 include ../Makefile.cmd
    28 include ../Makefile.cmd
    30 
    29 
    31 VER =		$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
    30 VER =		$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
    43 
    42 
    44 SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
    43 SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/gnu/bin:$(PATH)"
    45 
    44 
    46 TARGET_ENV +=   CC="$(CC)"
    45 TARGET_ENV +=   CC="$(CC)"
    47 TARGET_ENV +=   PATH="$(SFW_PATH)"
    46 TARGET_ENV +=   PATH="$(SFW_PATH)"
    48 TARGET_ENV +=   CFLAGS="$(CFLAGS) -I/usr/include/pcre"
    47 TARGET_ENV +=   CFLAGS="$(CFLAGS)"
    49 TARGET_ENV +=   LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk"
    48 TARGET_ENV +=   LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk"
    50 TARGET_ENV +=   MAKE="$(GMAKE)"
    49 TARGET_ENV +=   MAKE="$(GMAKE)"
    51 TARGET_ENV +=	INSTALL="$(INSTALL_PROTO)"
    50 TARGET_ENV +=	INSTALL="$(INSTALL_PROTO)"
    52 
    51 
    53 all:=		TARGET = all
    52 all:=		TARGET = all
    74 install-protofix: install-target
    73 install-protofix: install-target
    75 	for pkg in $(COMPONENT_PACKAGES:sh) ; do \
    74 	for pkg in $(COMPONENT_PACKAGES:sh) ; do \
    76 		$(SRC)/tools/protofix --pkg $$pkg --perm ; \
    75 		$(SRC)/tools/protofix --pkg $$pkg --perm ; \
    77 	done
    76 	done
    78 
    77 
    79 # new file delivery via bug4284.patch
    78 $(VER)/config.status: $(VER)/$(SFW_STAMP_PATCHED)
    80 $(VER)/epan/dissectors/packet-ipnet.c: $(VER)/.unpacked
       
    81 	$(TOUCH)  $@
       
    82 
       
    83 $(VER)/config.status: $(VER)/epan/dissectors/packet-ipnet.c .WAIT $(VER)/.patched
       
    84 	(cd $(VER) ; env - ./configure $(CONFIGURE_OPTIONS) $(TARGET_ENV))
    79 	(cd $(VER) ; env - ./configure $(CONFIGURE_OPTIONS) $(TARGET_ENV))
    85 
    80 
    86 clean:
    81 clean:
    87 	-rm -rf $(VER)
    82 	-rm -rf $(VER)
    88 
    83