4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# CDDL HEADER START
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# The contents of this file are subject to the terms of the
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# Common Development and Distribution License (the "License").
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# You may not use this file except in compliance with the License.
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# or http://www.opensolaris.org/os/licensing.
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# See the License for the specific language governing permissions
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# and limitations under the License.
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# When distributing Covered Code, include this CDDL HEADER in each
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# If applicable, add the following below this CDDL HEADER, with the
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# fields enclosed by brackets "[]" replaced with your own identifying
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# information: Portions Copyright [yyyy] [name of copyright owner]
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# CDDL HEADER END
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
fc3af78a71855c71878866a294572d00e6720533Basabi Bhattacharya# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs# Use is subject to license terms.
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs#
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsPROG = hald-probe-network-printer
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsOBJS = probe-network-printer.o logger.o probe-snmp.o printer.o
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsSRCS = probe-network-printer.c
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsinclude ../../../Makefile.cmd
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsinclude ../../Makefile.hal
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsROOTCMDDIR = $(ROOTLIB_HAL)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsLDLIBS += -lc -ldbus-1 -lhal
fc3af78a71855c71878866a294572d00e6720533Basabi BhattacharyaLDLIBS += $(ZIGNORE) -lnetsnmp
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsCPPFLAGS += -I$(ROOT)/usr/include/hal -I../../utils -I../../hald
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsC99MODE = $(C99_ENABLE)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs.KEEP_STATE:
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsall: $(PROG)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobslogger.o: ../../hald/logger.c
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs $(COMPILE.c) -o $@ ../../hald/logger.c
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs $(POST_PROCESS_O)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsprinter.o: ../../utils/printer.c
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs $(COMPILE.c) -o $@ ../../utils/printer.c
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs $(POST_PROCESS_O)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs$(PROG): $(OBJS)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs $(POST_PROCESS)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsinstall: all $(ROOTCMD)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsclean:
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs $(RM) $(OBJS)
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsFRC:
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobs
4e9cfc9a015e8ca7d41f7d018c74dc8a692305b3jacobsinclude ../../../Makefile.targ