1617e2443SMark Logan# 2617e2443SMark Logan# CDDL HEADER START 3617e2443SMark Logan# 4617e2443SMark Logan# The contents of this file are subject to the terms of the 5617e2443SMark Logan# Common Development and Distribution License (the "License"). 6617e2443SMark Logan# You may not use this file except in compliance with the License. 7617e2443SMark Logan# 8617e2443SMark Logan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9617e2443SMark Logan# or http://www.opensolaris.org/os/licensing. 10617e2443SMark Logan# See the License for the specific language governing permissions 11617e2443SMark Logan# and limitations under the License. 12617e2443SMark Logan# 13617e2443SMark Logan# When distributing Covered Code, include this CDDL HEADER in each 14617e2443SMark Logan# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15617e2443SMark Logan# If applicable, add the following below this CDDL HEADER, with the 16617e2443SMark Logan# fields enclosed by brackets "[]" replaced with your own identifying 17617e2443SMark Logan# information: Portions Copyright [yyyy] [name of copyright owner] 18617e2443SMark Logan# 19617e2443SMark Logan# CDDL HEADER END 20617e2443SMark Logan# 21617e2443SMark Logan# 22617e2443SMark Logan# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23617e2443SMark Logan# Use is subject to license terms. 24617e2443SMark Logan# 25617e2443SMark Logan 26617e2443SMark LoganPROG= lms 27617e2443SMark LoganMANIFEST= lms.xml 28617e2443SMark Logan 29617e2443SMark Loganinclude ../Makefile.cmd 30617e2443SMark Logan 31617e2443SMark LoganLMSOBJS= ConfigConnection.o Protocol.o main.o \ 32617e2443SMark Logan LMEConnection.o ProtocolCompat.o \ 33617e2443SMark Logan LMEConnectionCompat.o glue.o \ 34617e2443SMark Logan SyncLib/src/EventUnix.o SyncLib/src/RWLock.o \ 35617e2443SMark Logan SyncLib/src/SemaphoreUnix.o SyncLib/src/ThreadUnix.o \ 36617e2443SMark Logan heci/FWULCommand.o heci/HECIUnix.o \ 37617e2443SMark Logan heci/MNGCommand.o heci/PTHICommand.o \ 38617e2443SMark Logan tools/ATNetworkTool.o tools/ATVersion.o \ 39617e2443SMark Logan tools/daemonize.o 40617e2443SMark Logan 41617e2443SMark LoganROOTMANIFESTDIR= $(ROOTSVCNETWORK) 42617e2443SMark LoganROOTMETHOD= $(ROOTLIBSVCMETHOD)/svc-lms 43617e2443SMark Logan$(ROOTMANIFEST) := FILEMODE= 444 44617e2443SMark Logan 45617e2443SMark LoganSYNCLIB_SRCDIR=SyncLib/src 46617e2443SMark LoganSYNCLIB_HDRDIR=SyncLib/Include 47617e2443SMark LoganHECI_DIR=heci 48617e2443SMark LoganTOOLS_DIR=tools 49617e2443SMark Logan 50129cb33bSMark LoganCPPFLAGS= -DBSD_COMP -D_REMOTE_SUPPORT \ 51129cb33bSMark Logan -I. -I$(SYNCLIB_HDRDIR) -I$(HECI_DIR) -I$(TOOLS_DIR) 52129cb33bSMark LoganCCFLAGS += -compat=5 -features=zla 53*6a3e8e86SRichard Lowe$(__SUNC)CCNEEDED= $(CCEXTNEEDED) 54129cb33bSMark LoganLDFLAGS += $(ZIGNORE) -norunpath 55129cb33bSMark LoganLDLIBS += -lsocket -lnsl 56617e2443SMark Logan 57617e2443SMark Logan.KEEP_STATE: 58617e2443SMark Logan 59617e2443SMark Loganall: $(PROG) 60617e2443SMark Logan 61617e2443SMark Logan$(PROG): $(LMSOBJS) 62129cb33bSMark Logan $(LINK.cc) -o $@ $(LMSOBJS) $(LDLIBS) -lc 63617e2443SMark Logan $(POST_PROCESS) 64617e2443SMark Logan 65617e2443SMark Logan%.o: %.cpp 66617e2443SMark Logan $(COMPILE.cc) $(OUTPUT_OPTION) -o $@ $< 67617e2443SMark Logan $(POST_PROCESS_O) 68617e2443SMark Logan 69617e2443SMark Loganinstall: all $(ROOTLIBPROG) $(ROOTMANIFEST) $(ROOTMETHOD) 70617e2443SMark Logan 71617e2443SMark Logancheck: $(CHKMANIFEST) 72617e2443SMark Logan 73617e2443SMark Loganclean: 74617e2443SMark Logan $(RM) $(OBJS) $(LMSOBJS) 75617e2443SMark Logan 76617e2443SMark Loganinclude ../Makefile.targ 77617e2443SMark Logan 78617e2443SMark Logan# 79617e2443SMark Logan# we're not linting lms. it's all C++. 80617e2443SMark Logan# 81617e2443SMark Logan 82617e2443SMark Loganlint: 83