xref: /titanic_51/usr/src/cmd/hal/probing/network-printer/Makefile (revision fc3af78a71855c71878866a294572d00e6720533)
14e9cfc9aSjacobs#
24e9cfc9aSjacobs# CDDL HEADER START
34e9cfc9aSjacobs#
44e9cfc9aSjacobs# The contents of this file are subject to the terms of the
54e9cfc9aSjacobs# Common Development and Distribution License (the "License").
64e9cfc9aSjacobs# You may not use this file except in compliance with the License.
74e9cfc9aSjacobs#
84e9cfc9aSjacobs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94e9cfc9aSjacobs# or http://www.opensolaris.org/os/licensing.
104e9cfc9aSjacobs# See the License for the specific language governing permissions
114e9cfc9aSjacobs# and limitations under the License.
124e9cfc9aSjacobs#
134e9cfc9aSjacobs# When distributing Covered Code, include this CDDL HEADER in each
144e9cfc9aSjacobs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154e9cfc9aSjacobs# If applicable, add the following below this CDDL HEADER, with the
164e9cfc9aSjacobs# fields enclosed by brackets "[]" replaced with your own identifying
174e9cfc9aSjacobs# information: Portions Copyright [yyyy] [name of copyright owner]
184e9cfc9aSjacobs#
194e9cfc9aSjacobs# CDDL HEADER END
204e9cfc9aSjacobs#
214e9cfc9aSjacobs#
22*fc3af78aSBasabi Bhattacharya# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
234e9cfc9aSjacobs# Use is subject to license terms.
244e9cfc9aSjacobs#
254e9cfc9aSjacobs#
264e9cfc9aSjacobs
274e9cfc9aSjacobsPROG =		hald-probe-network-printer
284e9cfc9aSjacobsOBJS =		probe-network-printer.o logger.o probe-snmp.o printer.o
294e9cfc9aSjacobsSRCS =		probe-network-printer.c
304e9cfc9aSjacobs
314e9cfc9aSjacobsinclude ../../../Makefile.cmd
324e9cfc9aSjacobsinclude ../../Makefile.hal
334e9cfc9aSjacobs
344e9cfc9aSjacobsROOTCMDDIR =	$(ROOTLIB_HAL)
354e9cfc9aSjacobs
364e9cfc9aSjacobsLDLIBS +=	-lc -ldbus-1 -lhal
37*fc3af78aSBasabi BhattacharyaLDLIBS +=	$(ZIGNORE) -lnetsnmp
384e9cfc9aSjacobs
394e9cfc9aSjacobsCPPFLAGS +=	$(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS)
404e9cfc9aSjacobsCPPFLAGS +=	-I$(ROOT)/usr/include/hal -I../../utils -I../../hald
414e9cfc9aSjacobsC99MODE =	$(C99_ENABLE)
424e9cfc9aSjacobs
434e9cfc9aSjacobs.KEEP_STATE:
444e9cfc9aSjacobs
454e9cfc9aSjacobsall: $(PROG)
464e9cfc9aSjacobs
474e9cfc9aSjacobslogger.o: ../../hald/logger.c
484e9cfc9aSjacobs	$(COMPILE.c) -o $@ ../../hald/logger.c
494e9cfc9aSjacobs	$(POST_PROCESS_O)
504e9cfc9aSjacobs
514e9cfc9aSjacobsprinter.o: ../../utils/printer.c
524e9cfc9aSjacobs	$(COMPILE.c) -o $@ ../../utils/printer.c
534e9cfc9aSjacobs	$(POST_PROCESS_O)
544e9cfc9aSjacobs
554e9cfc9aSjacobs$(PROG): $(OBJS)
564e9cfc9aSjacobs	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
574e9cfc9aSjacobs	$(POST_PROCESS)
584e9cfc9aSjacobs
594e9cfc9aSjacobsinstall: all $(ROOTCMD)
604e9cfc9aSjacobs
614e9cfc9aSjacobsclean:
624e9cfc9aSjacobs	$(RM) $(OBJS)
634e9cfc9aSjacobs
644e9cfc9aSjacobsFRC:
654e9cfc9aSjacobs
664e9cfc9aSjacobsinclude ../../../Makefile.targ
67