Home | History | Annotate | Download | only in fpsd
      1   6429  vs195195 #
      2   6429  vs195195 # CDDL HEADER START
      3   6429  vs195195 #
      4   6429  vs195195 # The contents of this file are subject to the terms of the
      5   6429  vs195195 # Common Development and Distribution License (the "License").
      6   6429  vs195195 # You may not use this file except in compliance with the License.
      7   6429  vs195195 #
      8   6429  vs195195 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9   6429  vs195195 # or http://www.opensolaris.org/os/licensing.
     10   6429  vs195195 # See the License for the specific language governing permissions
     11   6429  vs195195 # and limitations under the License.
     12   6429  vs195195 #
     13   6429  vs195195 # When distributing Covered Code, include this CDDL HEADER in each
     14   6429  vs195195 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15   6429  vs195195 # If applicable, add the following below this CDDL HEADER, with the
     16   6429  vs195195 # fields enclosed by brackets "[]" replaced with your own identifying
     17   6429  vs195195 # information: Portions Copyright [yyyy] [name of copyright owner]
     18   6429  vs195195 #
     19   6429  vs195195 # CDDL HEADER END
     20   6429  vs195195 #
     21   6429  vs195195 
     22   6429  vs195195 #
     23  10314       Rod # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     24   6429  vs195195 # Use is subject to license terms.
     25   6429  vs195195 #
     26   6429  vs195195 
     27   7186  kk158166 PROG       = fpsd
     28   6429  vs195195 
     29   7186  kk158166 SRCS = fpsd_main.c fpsd_sched.c fpsd_util.c fpsd_esutil.c fpsd_log.c
     30   7186  kk158166 OBJS = $(SRCS:%.c=%.o)
     31   7186  kk158166 
     32   7186  kk158166 MANIFEST = $(PROG).xml
     33   7186  kk158166 
     34   6429  vs195195 include ../../Makefile.cmd
     35   6429  vs195195 
     36   6429  vs195195 ROOTMANIFESTDIR = $(ROOTSVCSYSTEM)
     37   6429  vs195195 
     38   7186  kk158166 ROOTLIBFPS= $(ROOTLIB)/fps
     39   7186  kk158166 ROOTLIBFPSDAEMON= $(PROG:%=$(ROOTLIBFPS)/%)
     40   6429  vs195195 
     41   6429  vs195195 POFILES = $(SRCS:%.c=%.po)
     42   6429  vs195195 
     43   7186  kk158166 CPPFLAGS += -I../include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
     44   7186  kk158166 
     45   7186  kk158166 CFLAGS += $(CCMT)
     46   7186  kk158166 
     47  10314       Rod LDLIBS  += -lc -ldevinfo -lkstat -lscf -lgen
     48   7186  kk158166 
     49   7186  kk158166 LDFLAGS += $(ZIGNORE)
     50   6429  vs195195 
     51   6429  vs195195 .KEEP_STATE:
     52   6429  vs195195 
     53   6429  vs195195 ##### beginning of dependency lines #####
     54   6429  vs195195 
     55   7186  kk158166 all: $(PROG)
     56   7186  kk158166 
     57   7186  kk158166 $(PROG): $(OBJS)
     58   7186  kk158166 	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
     59   6429  vs195195 	$(POST_PROCESS)
     60   7186  kk158166 
     61   7186  kk158166 install: all $(ROOTLIBFPS) $(ROOTLIBFPSDAEMON) $(ROOTMANIFESTDIR) \
     62   7186  kk158166          $(ROOTMANIFEST)
     63   7186  kk158166 
     64   7186  kk158166 check: $(CHKMANIFEST)
     65   7186  kk158166 
     66   7186  kk158166 clean:
     67   7186  kk158166 	$(RM) $(OBJS)
     68   7186  kk158166 
     69   7186  kk158166 lint: lint_SRCS
     70   7186  kk158166 
     71   7186  kk158166 $(ROOTLIBFPS):
     72   7186  kk158166 	$(INS.dir)
     73   7186  kk158166 
     74   7186  kk158166 $(ROOTLIBFPS)/%:      %
     75   7186  kk158166 	$(INS.file)
     76   6429  vs195195 
     77   6429  vs195195 $(POFILE):  $(POFILES) FRC
     78   7186  kk158166 	 @$(RM) $@
     79   7186  kk158166 	 $(CAT) $(POFILES) > $@
     80   6429  vs195195 
     81   7186  kk158166 include ../../Makefile.targ
     82   6429  vs195195 
     83   6429  vs195195 FRC:
     84