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