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