Makefile revision 18c2aff776a775d34a4c9893a4c72e0434d68e36
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye#
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# CDDL HEADER START
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye#
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# The contents of this file are subject to the terms of the
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# Common Development and Distribution License (the "License").
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# You may not use this file except in compliance with the License.
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye#
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# or http://www.opensolaris.org/os/licensing.
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# See the License for the specific language governing permissions
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# and limitations under the License.
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye#
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye#
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# CDDL HEADER END
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye#
6602c01097c66d242046fb0490e0a5dcc1ca36c5Lubos Kosco#
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# Use is subject to license terms.
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye#
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye# ident "%Z%%M% %I% %E% SMI"
a39bcfe2e58183496eab6572675e2896e5045fa7Knut Anders Hatlen#
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond NorbyePROG = volcheck
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond NorbyeLOCAL_OBJS = volcheck.o
a39bcfe2e58183496eab6572675e2896e5045fa7Knut Anders HatlenRMVOLMGR_OBJS = rmm_common.o vold.o
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond NorbyeOBJS = $(LOCAL_OBJS) $(RMVOLMGR_OBJS)
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond NorbyeLOCAL_SRCS = $(LOCAL_OBJS:%.o=%.c)
a39bcfe2e58183496eab6572675e2896e5045fa7Knut Anders HatlenRMVOLGMR_SRCS = $(RMVOLMGR_OBJS:%.o=$(SRC)/cmd/rmvolmgr/%.c)
a39bcfe2e58183496eab6572675e2896e5045fa7Knut Anders HatlenSRCS = $(LOCAL_SRCS) $(RMVOLMGR_SRCS)
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbyeinclude $(SRC)/cmd/Makefile.cmd
e9e46b3c65a9ab7b041fb3b6ca6c4b7dd3fe6fe5Trond Norbyeinclude $(SRC)/cmd/hal/Makefile.hal
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye
190673381ffa7a24ec9cad406784a9a84644e04fTrond NorbyeLDLIBS += -ldbus-1 -ldbus-glib-1 -lglib-2.0 -lhal -lhal-storage -lcontract
1ed6b730409d4740e941142599767d5eac7e7d92Lubos Kosco
a5be20d820b2d5641fc7652f3b38a3d3d79907d1Jan S BergCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS)
a39bcfe2e58183496eab6572675e2896e5045fa7Knut Anders HatlenCPPFLAGS += -I$(ROOT)/usr/include/hal
6d7c6f82e644c205bc679ee5b1fa2929ec949963Lubos KoscoCPPFLAGS += -I$(SRC)/cmd/rmvolmgr
6d7c6f82e644c205bc679ee5b1fa2929ec949963Lubos KoscoC99MODE = $(C99_ENABLE)
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye.KEEP_STATE:
d7440ea2eb4b924b5dc758f651e04a927613a3cbKnut Anders Hatlen
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Koscoall: $(PROG)
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Kosco
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Kosco$(PROG): $(OBJS)
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Kosco $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Kosco $(POST_PROCESS)
6d7c6f82e644c205bc679ee5b1fa2929ec949963Lubos Kosco
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Koscoinstall: all $(ROOTPROG)
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Kosco
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Koscormm_common.o: $(SRC)/cmd/rmvolmgr/rmm_common.c $(SRC)/cmd/rmvolmgr/rmm_common.h
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Kosco $(COMPILE.c) -o $@ $(SRC)/cmd/rmvolmgr/rmm_common.c
3dc379d98a11243103242e2b43b1ab1322795b7eLubos Kosco $(POST_PROCESS_O)
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco
6fb29c51593eb4622f537cd43c1a81ffb36a8ff7Knut Anders Hatlenvold.o: $(SRC)/cmd/rmvolmgr/vold.c $(SRC)/cmd/rmvolmgr/vold.h
6fb29c51593eb4622f537cd43c1a81ffb36a8ff7Knut Anders Hatlen $(COMPILE.c) -o $@ $(SRC)/cmd/rmvolmgr/vold.c
6fb29c51593eb4622f537cd43c1a81ffb36a8ff7Knut Anders Hatlen $(POST_PROCESS_O)
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye
b645988bdc1cf4f2f82b8c00ed041ddddd822c24Lubos Koscoclean:
b645988bdc1cf4f2f82b8c00ed041ddddd822c24Lubos Kosco $(RM) $(OBJS)
b645988bdc1cf4f2f82b8c00ed041ddddd822c24Lubos Kosco
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Koscoinclude ../Makefile.targ
f13d97cec07e63a9ead8cd7897c96538295e4f07Trond Norbye