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# 23# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26 27PROG = fpsd 28 29SRCS = fpsd_main.c fpsd_sched.c fpsd_util.c fpsd_esutil.c fpsd_log.c 30OBJS = $(SRCS:%.c=%.o) 31 32MANIFEST = $(PROG).xml 33 34include ../../Makefile.cmd 35 36ROOTMANIFESTDIR = $(ROOTSVCSYSTEM) 37 38ROOTLIBFPS= $(ROOTLIB)/fps 39ROOTLIBFPSDAEMON= $(PROG:%=$(ROOTLIBFPS)/%) 40 41POFILES = $(SRCS:%.c=%.po) 42 43CPPFLAGS += -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 44 45CFLAGS += $(CCMT) 46 47LDLIBS += -lc -ldevinfo -lkstat -lscf -lgen 48 49LDFLAGS += $(ZIGNORE) 50 51.KEEP_STATE: 52 53##### beginning of dependency lines ##### 54 55all: $(PROG) 56 57$(PROG): $(OBJS) 58 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 59 $(POST_PROCESS) 60 61install: all $(ROOTLIBFPS) $(ROOTLIBFPSDAEMON) $(ROOTMANIFESTDIR) \ 62 $(ROOTMANIFEST) 63 64check: $(CHKMANIFEST) 65 66clean: 67 $(RM) $(OBJS) 68 69lint: lint_SRCS 70 71$(ROOTLIBFPS): 72 $(INS.dir) 73 74$(ROOTLIBFPS)/%: % 75 $(INS.file) 76 77$(POFILE): $(POFILES) FRC 78 @$(RM) $@ 79 $(CAT) $(POFILES) > $@ 80 81include ../../Makefile.targ 82 83FRC: 84