1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25 26PROG= lms 27MANIFEST= lms.xml 28 29include ../Makefile.cmd 30 31LMSOBJS= ConfigConnection.o Protocol.o main.o \ 32 LMEConnection.o ProtocolCompat.o \ 33 LMEConnectionCompat.o glue.o \ 34 SyncLib/src/EventUnix.o SyncLib/src/RWLock.o \ 35 SyncLib/src/SemaphoreUnix.o SyncLib/src/ThreadUnix.o \ 36 heci/FWULCommand.o heci/HECIUnix.o \ 37 heci/MNGCommand.o heci/PTHICommand.o \ 38 tools/ATNetworkTool.o tools/ATVersion.o \ 39 tools/daemonize.o 40 41LDLIBS += -lsocket -lnsl 42LDFLAGS += $(ZIGNORE) -norunpath 43 44ROOTMANIFESTDIR= $(ROOTSVCNETWORK) 45ROOTMETHOD= $(ROOTLIBSVCMETHOD)/svc-lms 46$(ROOTMANIFEST) := FILEMODE= 444 47 48SYNCLIB_SRCDIR=SyncLib/src 49SYNCLIB_HDRDIR=SyncLib/Include 50HECI_DIR=heci 51TOOLS_DIR=tools 52 53CPPFLAGS= -DBSD_COMP -compat=5 -features=zla -I. -I$(SYNCLIB_HDRDIR) -I$(HECI_DIR) -I$(TOOLS_DIR) -D_REMOTE_SUPPORT 54 55.KEEP_STATE: 56 57all: $(PROG) 58 59$(PROG): $(LMSOBJS) 60 $(CCC) $(LDFLAGS) $(CPPFLAGS) -o $@ $(LMSOBJS) $(LDLIBS) 61 $(POST_PROCESS) 62 63%.o: %.cpp 64 $(COMPILE.cc) $(OUTPUT_OPTION) -o $@ $< 65 $(POST_PROCESS_O) 66 67install: all $(ROOTLIBPROG) $(ROOTMANIFEST) $(ROOTMETHOD) 68 69check: $(CHKMANIFEST) 70 71clean: 72 $(RM) $(OBJS) $(LMSOBJS) 73 74include ../Makefile.targ 75 76# 77# we're not linting lms. it's all C++. 78# 79 80lint: 81