xref: /onnv-gate/usr/src/cmd/cdrw/Makefile (revision 6238:f3e8b710f033)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
56222Szk194757# Common Development and Distribution License (the "License").
66222Szk194757# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
226222Szk194757# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
280Sstevel@tonic-gatePROG= cdrw
290Sstevel@tonic-gate
300Sstevel@tonic-gateOBJS= main.o mmc.o device.o transport.o util.o msgs.o misc_scsi.o dumpinfo.o \
310Sstevel@tonic-gate      toshiba.o bstream.o options.o trackio.o write_image.o blank.o \
320Sstevel@tonic-gate      write_audio.o dae.o copycd.o
330Sstevel@tonic-gate
340Sstevel@tonic-gateinclude ../Makefile.cmd
356222Szk194757include ../hal/Makefile.hal
360Sstevel@tonic-gate
370Sstevel@tonic-gateSRCS= $(OBJS:.o=.c)
380Sstevel@tonic-gate
39*6238Szk194757LDLIBS +=	-lhal -lsecdb
40*6238Szk194757NONLINTLDLIBS =	-ldbus-1
410Sstevel@tonic-gateCFLAGS +=	$(CCVERBOSE)
426222Szk194757CPPFLAGS +=	-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(HAL_DBUS_CPPFLAGS)
430Sstevel@tonic-gateLINTFLAGS += 	-um
440Sstevel@tonic-gate
450Sstevel@tonic-gate$(ROOTBIN)/cdrw := FILEMODE = 04755
460Sstevel@tonic-gate
470Sstevel@tonic-gate.KEEP_STATE:
480Sstevel@tonic-gate
490Sstevel@tonic-gateall: $(PROG)
500Sstevel@tonic-gate
510Sstevel@tonic-gate$(PROG): $(OBJS)
52*6238Szk194757	$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) $(NONLINTLDLIBS) $(CFLAGS)
530Sstevel@tonic-gate	$(POST_PROCESS)
540Sstevel@tonic-gate
550Sstevel@tonic-gateinstall: all $(ROOTPROG)
560Sstevel@tonic-gate
570Sstevel@tonic-gateclean:
580Sstevel@tonic-gate	$(RM) $(OBJS)
590Sstevel@tonic-gate
600Sstevel@tonic-gatelint: lint_SRCS
610Sstevel@tonic-gate
620Sstevel@tonic-gate$(POFILE) : $(SRCS)
630Sstevel@tonic-gate	$(RM) $@
640Sstevel@tonic-gate	$(COMPILE.cpp) $(SRCS) | $(XGETTEXT) $(XGETFLAGS) -
650Sstevel@tonic-gate	$(SED) -e '/^domain/d' messages.po > $@
660Sstevel@tonic-gate
670Sstevel@tonic-gatesb: $(SRCS)
680Sstevel@tonic-gate	$(COMPILE.c) -xsbfast $(SRCS)
690Sstevel@tonic-gate
700Sstevel@tonic-gateinclude ../Makefile.targ
71