Makefile revision 67e3a03ed4a2813074d36330f062ed6e593a4937
402N/A#
402N/A# CDDL HEADER START
402N/A#
402N/A# The contents of this file are subject to the terms of the
402N/A# Common Development and Distribution License (the "License").
402N/A# You may not use this file except in compliance with the License.
402N/A#
402N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
402N/A# or http://www.opensolaris.org/os/licensing.
402N/A# See the License for the specific language governing permissions
402N/A# and limitations under the License.
402N/A#
402N/A# When distributing Covered Code, include this CDDL HEADER in each
402N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
402N/A# If applicable, add the following below this CDDL HEADER, with the
402N/A# fields enclosed by brackets "[]" replaced with your own identifying
402N/A# information: Portions Copyright [yyyy] [name of copyright owner]
402N/A#
402N/A# CDDL HEADER END
402N/A#
2899N/A#
402N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
814N/A# Use is subject to license terms.
814N/A#
814N/A# ident "%Z%%M% %I% %E% SMI"
1780N/A#
814N/A
402N/ASUBDIRS = solaris
402N/A
402N/APROG = hald
402N/AOBJS = hald_marshal.o device.o device_info.o device_store.o hald.o \
402N/A hald_dbus.o hald_runner.o ids.o logger.o property.o util.o \
402N/A util_helper.o util_pm.o
618N/AOBJS_SOL = devinfo.o devinfo_ieee1394.o devinfo_misc.o devinfo_pci.o devinfo_storage.o \
402N/A devinfo_usb.o hotplug.o osspec.o sysevent.o devinfo_acpi.o
402N/AOBJS_ALL = $(OBJS) $(OBJS_SOL:%=solaris/%)
402N/ASRCS = $(OBJS:%.o=%.c)
844N/A
844N/Ainclude ../../Makefile.cmd
402N/Ainclude ../Makefile.hal
1407N/A
402N/AROOTCMDDIR = $(ROOTLIB_HAL)
2899N/A
2899N/ALDLIBS += -lc -lm -ldbus-1 -ldbus-glib-1 -lglib-2.0 -lgobject-2.0 \
814N/A -ldevinfo -lsysevent -lnvpair
814N/A
402N/Aall install $(PROG) := LDLIBS += -lexpat
402N/A
402N/ACPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
402N/ACPPFLAGS += -I/usr/sfw/include
402N/AC99MODE = $(C99_ENABLE)
402N/A
402N/Aall := TARGET= all
402N/Ainstall := TARGET= install
402N/Aclean := TARGET= clean
402N/Aclobber := TARGET= clobber
402N/A$(PROG) := TARGET= all
402N/A
402N/A.KEEP_STATE:
402N/A
402N/Aall: $(SUBDIRS) .WAIT $(PROG)
402N/A
402N/Ahald_marshal.o: hald_marshal.h hald_marshal.c
402N/A
402N/Ahald_marshal.h: hald_marshal.list
402N/A glib-genmarshal --prefix=hald_marshal hald_marshal.list --header >> xgen-gmh \
402N/A && (cmp -s xgen-gmh hald_marshal.h || cp xgen-gmh hald_marshal.h) \
402N/A && rm -f xgen-gmh xgen-gmh~
402N/A
402N/Ahald_marshal.c: hald_marshal.list
402N/A glib-genmarshal --prefix=hald_marshal hald_marshal.list --body >> xgen-gmc \
402N/A && (cmp -s xgen-gmc hald_marshal.c || cp xgen-gmc hald_marshal.c) \
402N/A && rm -f xgen-gmc xgen-gmc~
402N/A
402N/A$(PROG): $(SUBDIRS) .WAIT $(OBJS_ALL)
402N/A $(LINK.c) -o $@ $(OBJS_ALL) $(LDLIBS)
402N/A $(POST_PROCESS)
402N/A
402N/Ainstall: all $(ROOTCMD) $(SUBDIRS)
402N/A
402N/Aclean: $(SUBDIRS)
402N/A $(RM) $(OBJS) hald_marshal.c hald_marshal.h
402N/A
402N/A$(SUBDIRS): FRC
402N/A @cd $@; pwd; $(MAKE) $(TARGET)
402N/A
402N/AFRC:
402N/A
402N/Ainclude ../../Makefile.targ
402N/A