New Makefile.sfw
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
24 #
25 # Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
26 # Use is subject to license terms.
27 #
28 #
29
30 VER=amanda-2.6.0p1
31 README=README.SFWamnda
32
33 all: $(VER)/config.status
34 (cd $(VER); env \
35 CC=gcc CXX=g++ \
36 PATH=/usr/perl5/bin:/usr/sfw/bin:$(PATH) \
37 "LD_LIBRARY_PATH=$(ROOT)/opt/sfw/lib:/usr/lib:/usr/sfw/lib" \
38 "LDFLAGS=-L$(ROOT)/opt/sfw/lib -L/usr/sfw/lib -R/opt/sfw/lib -R/usr/sfw/lib" \
39 GZIP=/usr/bin/gzip \
40 MAKE=/usr/sfw/bin/gmake /usr/sfw/bin/gmake)
41 @find . -name core -exec rm -f {} \;
42
43 include ../Makefile.cmd
44
45 install: all .WAIT $(ROOTREADME)
46 $(SH) ./install-sfw
47
48 $(VER)/config.status: $(VER)/configure
49 (cd $(VER); env \
50 CC=gcc CXX=g++ \
51 PATH=/usr/perl5/bin:/usr/sfw/bin:$(PATH) \
52 "LD_LIBRARY_PATH=$(ROOT)/opt/sfw/lib:/usr/lib:/usr/sfw/lib" \
53 "LDFLAGS=-L$(ROOT)/opt/sfw/lib -L/usr/sfw/lib -R/opt/sfw/lib -R/usr/sfw/lib" \
54 GZIP=/usr/bin/gzip \
55 MAKE=/usr/sfw/bin/gmake \
56 ./configure --with-user=amandaad \
57 --with-group=sys \
58 --with-config=solarisbackup \
59 --prefix=/opt/sfw)
60
61 $(VER)/configure: $(VER).tar.gz
62 /usr/bin/gzip -dc $(VER).tar.gz | /usr/sfw/bin/gtar xpf -
63 touch $(VER)/configure
64
65 clean:
66 -rm -rf $(VER)
67
68 include ../Makefile.targ
69
70 .SUFFIXES:
71
72 FRC: