142a7bdedSjacobs# 242a7bdedSjacobs# CDDL HEADER START 342a7bdedSjacobs# 442a7bdedSjacobs# The contents of this file are subject to the terms of the 542a7bdedSjacobs# Common Development and Distribution License (the "License"). 642a7bdedSjacobs# You may not use this file except in compliance with the License. 742a7bdedSjacobs# 842a7bdedSjacobs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 942a7bdedSjacobs# or http://www.opensolaris.org/os/licensing. 1042a7bdedSjacobs# See the License for the specific language governing permissions 1142a7bdedSjacobs# and limitations under the License. 1242a7bdedSjacobs# 1342a7bdedSjacobs# When distributing Covered Code, include this CDDL HEADER in each 1442a7bdedSjacobs# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1542a7bdedSjacobs# If applicable, add the following below this CDDL HEADER, with the 1642a7bdedSjacobs# fields enclosed by brackets "[]" replaced with your own identifying 1742a7bdedSjacobs# information: Portions Copyright [yyyy] [name of copyright owner] 1842a7bdedSjacobs# 1942a7bdedSjacobs# CDDL HEADER END 2042a7bdedSjacobs# 2142a7bdedSjacobs# 2242a7bdedSjacobs# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2342a7bdedSjacobs# Use is subject to license terms. 2442a7bdedSjacobs# 2542a7bdedSjacobs# ident "%Z%%M% %I% %E% SMI" 2642a7bdedSjacobs# 2742a7bdedSjacobs 2842a7bdedSjacobsPROG = hald-probe-printer 29*4e9cfc9aSjacobsOBJS = probe-printer.o logger.o printer.o 3042a7bdedSjacobsSRCS = probe-printer.c 3142a7bdedSjacobs 3242a7bdedSjacobsinclude ../../../Makefile.cmd 3342a7bdedSjacobsinclude ../../Makefile.hal 3442a7bdedSjacobs 3542a7bdedSjacobsROOTCMDDIR = $(ROOTLIB_HAL) 3642a7bdedSjacobs 3742a7bdedSjacobsLDLIBS += -lc -ldbus-1 -lhal 3842a7bdedSjacobs 3942a7bdedSjacobsCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) 4042a7bdedSjacobsCPPFLAGS += -I$(ROOT)/usr/include/hal -I../../utils -I../../hald 4142a7bdedSjacobsC99MODE = $(C99_ENABLE) 4242a7bdedSjacobs 4342a7bdedSjacobs.KEEP_STATE: 4442a7bdedSjacobs 4542a7bdedSjacobsall: $(PROG) 4642a7bdedSjacobs 4742a7bdedSjacobslogger.o: ../../hald/logger.c 4842a7bdedSjacobs $(COMPILE.c) -o $@ ../../hald/logger.c 4942a7bdedSjacobs $(POST_PROCESS_O) 5042a7bdedSjacobs 51*4e9cfc9aSjacobsprinter.o: ../../utils/printer.c 52*4e9cfc9aSjacobs $(COMPILE.c) -o $@ ../../utils/printer.c 53*4e9cfc9aSjacobs $(POST_PROCESS_O) 54*4e9cfc9aSjacobs 5542a7bdedSjacobs$(PROG): $(OBJS) 5642a7bdedSjacobs $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 5742a7bdedSjacobs $(POST_PROCESS) 5842a7bdedSjacobs 5942a7bdedSjacobsinstall: all $(ROOTCMD) 6042a7bdedSjacobs 6142a7bdedSjacobsclean: 6242a7bdedSjacobs $(RM) $(OBJS) 6342a7bdedSjacobs 6442a7bdedSjacobsFRC: 6542a7bdedSjacobs 6642a7bdedSjacobsinclude ../../../Makefile.targ 67