1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
  14 #
  15 PROG=           certsdir
  16 
  17 OBJS=           certsdir.o utils.o scf.o
  18 SRCS=           $(OBJS:%.o=%.c)
  19 
  20 include ../Makefile.cmd
  21 
  22 FILEMODE =      0555
  23 
  24 MANIFEST =              certsdir.xml
  25 ROOTMANIFESTDIR =       $(ROOTSVCSYSTEM)
  26 
  27 LDLIBS +=       -lscf
  28 
  29 .KEEP_STATE:
  30 
  31 .PARALLEL: $(OBJS)
  32 
  33 all:            $(PROG) 
  34 
  35 $(PROG):        $(OBJS)
  36         $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  37         $(POST_PROCESS)
  38 
  39 install: all .WAIT $(ROOTLIBPROG) $(ROOTMANIFEST)
  40 
  41 lint:   lint_SRCS
  42 
  43 clean:
  44         $(RM) $(OBJS)
  45 
  46 include ../Makefile.targ