Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# CDDL HEADER START
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# The contents of this file are subject to the terms of the
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# Common Development and Distribution License (the "License").
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# You may not use this file except in compliance with the License.
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# or http://www.opensolaris.org/os/licensing.
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# See the License for the specific language governing permissions
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# and limitations under the License.
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# When distributing Covered Code, include this CDDL HEADER in each
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# If applicable, add the following below this CDDL HEADER, with the
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# CDDL HEADER END
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync# Use is subject to license terms.
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync#
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncPROG= cdrw
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncOBJS= main.o mmc.o device.o transport.o util.o msgs.o misc_scsi.o dumpinfo.o \
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync toshiba.o bstream.o options.o trackio.o write_image.o blank.o \
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync write_audio.o dae.o copycd.o
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncinclude ../Makefile.cmd
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncinclude ../hal/Makefile.hal
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncSRCS= $(OBJS:.o=.c)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncLDLIBS += -lhal -lsecdb
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncNONLINTLDLIBS = -ldbus-1
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncCFLAGS += $(CCVERBOSE)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncCERRWARN += -_gcc=-Wno-uninitialized
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncCERRWARN += -_gcc=-Wno-parentheses
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncCPPFLAGS += -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(HAL_DBUS_CPPFLAGS)
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsyncLINTFLAGS += -um
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync
13493ab7596e827b8d0caab2c89e635dd65f78f9vboxsync$(ROOTBIN)/cdrw := FILEMODE = 04755
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) $(NONLINTLDLIBS) $(CFLAGS)
$(POST_PROCESS)
install: all $(ROOTPROG)
clean:
$(RM) $(OBJS)
lint: lint_SRCS
$(POFILE) : $(SRCS)
$(RM) $@
$(COMPILE.cpp) $(SRCS) | $(XGETTEXT) $(XGETFLAGS) -
$(SED) -e '/^domain/d' messages.po > $@
sb: $(SRCS)
$(COMPILE.c) -xsbfast $(SRCS)
include ../Makefile.targ