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 2642a7bdedSjacobsPROG = hald-probe-printer 274e9cfc9aSjacobsOBJS = probe-printer.o logger.o printer.o 2842a7bdedSjacobsSRCS = probe-printer.c 2942a7bdedSjacobs 3042a7bdedSjacobsinclude ../../../Makefile.cmd 3142a7bdedSjacobsinclude ../../Makefile.hal 3242a7bdedSjacobs 3342a7bdedSjacobsROOTCMDDIR = $(ROOTLIB_HAL) 3442a7bdedSjacobs 3542a7bdedSjacobsLDLIBS += -lc -ldbus-1 -lhal 36*5801b0f0SToomas SoomeNATIVE_LIBS += libdbus-1.so 3742a7bdedSjacobs 3842a7bdedSjacobsCPPFLAGS += $(HAL_DBUS_CPPFLAGS) $(HAL_CONFIG_CPPFLAGS) 3942a7bdedSjacobsCPPFLAGS += -I$(ROOT)/usr/include/hal -I../../utils -I../../hald 40bd0ce624SYuri PankovCSTD = $(CSTD_GNU99) 4142a7bdedSjacobs 4242a7bdedSjacobs.KEEP_STATE: 4342a7bdedSjacobs 4442a7bdedSjacobsall: $(PROG) 4542a7bdedSjacobs 4642a7bdedSjacobslogger.o: ../../hald/logger.c 4742a7bdedSjacobs $(COMPILE.c) -o $@ ../../hald/logger.c 4842a7bdedSjacobs $(POST_PROCESS_O) 4942a7bdedSjacobs 504e9cfc9aSjacobsprinter.o: ../../utils/printer.c 514e9cfc9aSjacobs $(COMPILE.c) -o $@ ../../utils/printer.c 524e9cfc9aSjacobs $(POST_PROCESS_O) 534e9cfc9aSjacobs 5442a7bdedSjacobs$(PROG): $(OBJS) 5542a7bdedSjacobs $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 5642a7bdedSjacobs $(POST_PROCESS) 5742a7bdedSjacobs 5842a7bdedSjacobsinstall: all $(ROOTCMD) 5942a7bdedSjacobs 6042a7bdedSjacobsclean: 6142a7bdedSjacobs $(RM) $(OBJS) 6242a7bdedSjacobs 6342a7bdedSjacobsFRC: 6442a7bdedSjacobs 6542a7bdedSjacobsinclude ../../../Makefile.targ 66