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 |
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
|
22 |
# Use is subject to license terms.
|
|
23 |
#
|
|
24 |
#ident "@(#)Makefile.sfw 1.16 08/12/03 SMI"
|
|
25 |
#
|
|
26 |
VER=cdrtools-2.01.01a53
|
|
27 |
|
|
28 |
include ../Makefile.cmd
|
|
29 |
|
|
30 |
SFW_PATH="$(SPRO_VROOT)/bin:/usr/sfw/bin:/usr/xpg4/bin:/usr/perl5/bin:/usr/ccs/bin:/usr/bin"
|
|
31 |
|
|
32 |
all: $(VER)/unpack
|
|
33 |
(cd $(VER); env \
|
|
34 |
"CC=$(CC) CXX=$(CCC)" \
|
|
35 |
"CFLAGS += -D_FILE_OFFSET_BIT=64" \
|
|
36 |
PATH=$(SFW_PATH) \
|
|
37 |
"LD_OPTIONS= -M $(SRC)/cmd/mapfile_noexstk" \
|
|
38 |
RUNPATH= \
|
|
39 |
MAKE=$(CCSMAKE) \
|
|
40 |
$(CCSMAKE) -e CCOM=cc)
|
|
41 |
@find . -name core -exec rm -f {} \;
|
|
42 |
|
|
43 |
test: # there aren't any
|
|
44 |
|
|
45 |
install: all
|
|
46 |
VER=$(VER) $(SH) ./install-cdrtools
|
|
47 |
|
|
48 |
$(VER)/unpack: $(VER).tar.gz
|
|
49 |
gzip -dc $(VER).tar.gz | tar xopf -
|
|
50 |
touch $(VER)/configure
|
|
51 |
find $(VER) -type d -exec chmod 755 "{}" \;
|
|
52 |
find $(VER) -type f -exec chmod ugo+r "{}" \;
|
|
53 |
chmod u+w $(VER)/cdrecord/cdrecord.c
|
|
54 |
patch -N $(VER)/cdrecord/cdrecord.c < cdrecord.c.patch
|
|
55 |
chmod u-w $(VER)/cdrecord/cdrecord.c
|
|
56 |
|
|
57 |
clean:
|
|
58 |
-rm -rf $(VER)
|
|
59 |
|
|
60 |
include ../Makefile.targ
|