author | Jon Tibble <meths@btinternet.com> |
Fri, 10 Feb 2012 16:19:42 +0000 | |
branch | oi_151a |
changeset 114 | b6d40d0a7b17 |
parent 14 | ebdd963f7d5e |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# |
|
3 |
# CDDL HEADER START |
|
4 |
# |
|
5 |
# The contents of this file are subject to the terms of the |
|
6 |
# Common Development and Distribution License (the "License"). |
|
7 |
# You may not use this file except in compliance with the License. |
|
8 |
# |
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
10 |
# or http://www.opensolaris.org/os/licensing. |
|
11 |
# See the License for the specific language governing permissions |
|
12 |
# and limitations under the License. |
|
13 |
# |
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
16 |
# If applicable, add the following below this CDDL HEADER, with the |
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
19 |
# |
|
20 |
# CDDL HEADER END |
|
21 |
# |
|
14
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
22 |
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 23 |
# |
14
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
24 |
#ident "@(#)Makefile.sfw 1.11 10/04/26 SMI" |
0 | 25 |
|
14
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
26 |
RELNUM=$(COMPONENT_VERSION:sh) |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
27 |
VER=nmap-$(RELNUM) |
0 | 28 |
ARCHIVE=$(VER).tar.gz |
29 |
||
30 |
include ../Makefile.cmd |
|
31 |
||
32 |
PREFIX = $(ROOT)/usr |
|
33 |
DESTDIR = $(SRC)/cmd/nmap/proto |
|
34 |
INSTALL = /usr/bin/ginstall -c |
|
14
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
35 |
OPENSSL_ROOT = /usr |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
36 |
LDFLAGS_32 = -L$(ROOT)/usr/lib |
0 | 37 |
LD_OPTIONS = -lsocket -lresolv -lnsl -lgen -lc -lm -z ignore |
14
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
38 |
PYTHON = $(PYTHON26) |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
39 |
PYTHONPATH = /usr/lib/python2.6/vendor-packages:/usr/lib/python2.6/site-packages |
0 | 40 |
PKG_CONFIG_PATH_32 = $(PREFIX)/lib/pkgconfig:/usr/lib/pkgconfig |
41 |
CFLAGS = -m32 -fPIC -O2 |
|
42 |
CCFLAGS = -m32 -fPIC -O2 |
|
43 |
LDFLAGS = -L/usr/sfw/lib -R/usr/sfw/lib -lgcc_s -lstdc++ -lpcap -lcrypto -lssl -lc -lm |
|
44 |
CPPFLAGS += -I/usr/sfw/include |
|
45 |
||
46 |
CONFIGURE_OPTIONS = \ |
|
47 |
--prefix=$(CFGPREFIX) \ |
|
48 |
--disable-shared \ |
|
49 |
--enable-static \ |
|
50 |
--disable-libtool-lock \ |
|
51 |
--localstatedir=/var \ |
|
52 |
--without-localdirs \ |
|
53 |
--with-zenmap \ |
|
54 |
--with-openssl=$(OPENSSL_ROOT) \ |
|
55 |
--with-libpcap=$(PREFIX) \ |
|
56 |
--with-libpcre=$(PREFIX) \ |
|
14
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
57 |
--with-liblua=included \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
58 |
--with-ncat \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
59 |
--with-ndiff |
0 | 60 |
|
61 |
all: $(VER)/config.status |
|
62 |
(cd $(VER); env - \ |
|
63 |
CC="$(GCC)" \ |
|
64 |
CXX="$(GCC)" \ |
|
65 |
CFLAGS="$(CFLAGS)" \ |
|
66 |
CXXFLAGS="$(CCFLAGS)" \ |
|
67 |
CPPFLAGS="$(CPPFLAGS)" \ |
|
68 |
LDFLAGS="$(LDFLAGS_32) $(LDFLAGS)" \ |
|
69 |
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_32)" \ |
|
70 |
LD_OPTIONS="$(LD_OPTIONS) -M $(SRC)/cmd/mapfile_noexstk" \ |
|
71 |
PYTHON="$(PYTHON)" \ |
|
72 |
PYTHONPATH="$(PYTHONPATH)" \ |
|
73 |
INSTALL="$(INSTALL)" \ |
|
74 |
MAKEFLAGS= \ |
|
75 |
MAKE=$(GMAKE) \ |
|
76 |
$(GMAKE) ) |
|
77 |
@find . -name core -exec rm -f {} \; |
|
78 |
||
79 |
test: # none available |
|
80 |
||
81 |
install: all |
|
82 |
mkdir -p $(DESTDIR) |
|
83 |
( cd $(VER) ; env - \ |
|
84 |
CC="$(GCC)" \ |
|
85 |
CXX="$(GCC)" \ |
|
86 |
CFLAGS="$(CFLAGS)" \ |
|
87 |
CXXFLAGS="$(CCFLAGS)" \ |
|
88 |
CPPFLAGS="$(CPPFLAGS)" \ |
|
89 |
LDFLAGS="$(LDFLAGS_32) $(LDFLAGS)" \ |
|
90 |
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_32)" \ |
|
91 |
LD_OPTIONS="$(LD_OPTIONS) -M $(SRC)/cmd/mapfile_noexstk" \ |
|
92 |
PYTHON="$(PYTHON)" \ |
|
93 |
PYTHONPATH="$(PYTHONPATH)" \ |
|
94 |
INSTALL="$(INSTALL)" \ |
|
95 |
MAKE=$(GMAKE) \ |
|
96 |
DESTDIR=$(DESTDIR) \ |
|
97 |
$(GMAKE) "DESTDIR=$(DESTDIR)" "INSTALL=$(INSTALL)" install ) |
|
14
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
98 |
env PYTHON=$(PYTHON) INSTDIR=$(DESTDIR) VERS=$(VER) $(SHELL) ./install-nmap |
0 | 99 |
|
100 |
$(VER)/config.status: $(VER)/configure |
|
101 |
(cd $(VER); env - \ |
|
102 |
CC="$(GCC)" \ |
|
103 |
CXX="$(GCC)" \ |
|
104 |
CFLAGS="$(CFLAGS)" \ |
|
105 |
CXXFLAGS="$(CCFLAGS)" \ |
|
106 |
CPPFLAGS="$(CPPFLAGS)" \ |
|
107 |
LDFLAGS="$(LDFLAGS_32) $(LDFLAGS)" \ |
|
108 |
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_32)" \ |
|
109 |
LD_OPTIONS="$(LD_OPTIONS) -M $(SRC)/cmd/mapfile_noexstk" \ |
|
110 |
PYTHON="$(PYTHON)" \ |
|
111 |
PYTHONPATH="$(PYTHONPATH)" \ |
|
112 |
INSTALL="$(INSTALL)" \ |
|
113 |
CONFIGURE_OPTIONS="$(CONFIGURE_OPTIONS)" \ |
|
114 |
MAKE=$(GMAKE) \ |
|
115 |
ac_cv_dnet_linux_pf_packet=no \ |
|
116 |
./configure $(CONFIGURE_OPTIONS) ) |
|
117 |
||
118 |
$(VER)/configure: $(ARCHIVE) |
|
119 |
gzip -dc $(ARCHIVE) | tar xopf - |
|
120 |
( cd $(VER) ; \ |
|
14
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
121 |
gpatch -p0 <../Solaris/diffs/configure.0.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
122 |
gpatch -p0 <../Solaris/diffs/Makefile.in.1.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
123 |
gpatch -p0 <../Solaris/diffs/Makefile.in.2.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
124 |
gpatch -p0 <../Solaris/diffs/Makefile.in.3.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
125 |
gpatch -p0 <../Solaris/diffs/configure.3.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
126 |
gpatch -p0 <../Solaris/diffs/configure.4.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
127 |
gpatch -p0 <../Solaris/diffs/Makefile.4.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
128 |
gpatch -p0 <../Solaris/diffs/configure.5.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
129 |
gpatch -p0 <../Solaris/diffs/configure.6.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
130 |
gpatch -p0 <../Solaris/diffs/Makefile.in.7.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
131 |
gpatch -p0 <../Solaris/diffs/tcpip.cc.8.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
132 |
gpatch -p0 <../Solaris/diffs/intf.c.9.diff ; \ |
ebdd963f7d5e
Import sfw build 140
Cyril Plisko <cyril.plisko@grigale.com>
parents:
10
diff
changeset
|
133 |
gpatch -p0 <../Solaris/diffs/setup.py.11.diff ; \ |
0 | 134 |
find . -type f -name "configure" -exec chmod 0755 {} \; -print ; \ |
135 |
find . -type f -name "configure" -exec touch -acm {} \; -print ; \ |
|
136 |
find . -type f -name "setup.py" -exec chmod 0755 {} \; -print ; \ |
|
137 |
cd .. ) |
|
138 |
||
139 |
clean: |
|
6 | 140 |
-rm -rf $(VER) $(DESTDIR) |
0 | 141 |
|
142 |
include ../Makefile.targ |