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 27 PROG = fpsd 28 29 SRCS = fpsd_main.c fpsd_sched.c fpsd_util.c fpsd_esutil.c fpsd_log.c 30 OBJS = $(SRCS:%.c=%.o) 31 32 MANIFEST = $(PROG).xml 33 34 include ../../Makefile.cmd 35 36 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM) 37 38 ROOTLIBFPS= $(ROOTLIB)/fps 39 ROOTLIBFPSDAEMON= $(PROG:%=$(ROOTLIBFPS)/%) 40 41 POFILES = $(SRCS:%.c=%.po) 42 43 CPPFLAGS += -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 44 45 CFLAGS += $(CCMT) 46 47 LDLIBS += -lc -ldevinfo -lkstat -lscf -lgen 48 49 LDFLAGS += $(ZIGNORE) 50 51 .KEEP_STATE: 52 53 ##### beginning of dependency lines ##### 54 55 all: $(PROG) 56 57 $(PROG): $(OBJS) 58 $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 59 $(POST_PROCESS) 60 61 install: all $(ROOTLIBFPS) $(ROOTLIBFPSDAEMON) $(ROOTMANIFESTDIR) \ 62 $(ROOTMANIFEST) 63 64 check: $(CHKMANIFEST) 65 66 clean: 67 $(RM) $(OBJS) 68 69 lint: 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 81 include ../../Makefile.targ 82 83 FRC: 84