components/visual-panels/make-rules/Makefile.targ
changeset 3553 f1d133b09a8c
parent 3552 077ebe3d0d24
child 3554 ef58713bafc4
equal deleted inserted replaced
3552:077ebe3d0d24 3553:f1d133b09a8c
     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 (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 #
       
    27 # Common targets
       
    28 #
       
    29 
       
    30 build := TARGET = build
       
    31 install := TARGET = install
       
    32 publish := TARGET = publish
       
    33 clean := TARGET = clean
       
    34 clobber := TARGET = clobber
       
    35 lint := TARGET = lint
       
    36 
       
    37 .NO_PARALLEL:
       
    38 
       
    39 build install publish lint: $(SUBDIRS)
       
    40 
       
    41 # Add to above dependency
       
    42 install: build
       
    43 
       
    44 publish: install
       
    45 
       
    46 $(DEPENDENCY_JARS):
       
    47 	cd $(@D); $(MAKE) $(@F)
       
    48 
       
    49 $(SUBDIRS): FRC
       
    50 	@cd $@; pwd; $(MAKE) $(TARGET)
       
    51 
       
    52 clean: $(SUBDIRS)
       
    53 	$(RM) -r - $(CLEAN_FILES)
       
    54 
       
    55 clobber: $(SUBDIRS)
       
    56 	$(RM) -r - $(CLOBBER_FILES)
       
    57 
       
    58 install_h: $(ROOTHDRS)
       
    59 
       
    60 $(PROTO_DOC)%:
       
    61 	$(INS.dir)
       
    62 
       
    63 # Proto files
       
    64 $(PROTO_APPS)/% \
       
    65 	$(PROTO_APPS_PO)/% \
       
    66 	$(PROTO_AUTOSTART)/% \
       
    67 	$(PROTO_LIB)/% \
       
    68 	$(PROTO_MDB)/%: %
       
    69 	$(INS.file)
       
    70 
       
    71 # Proto files, remove CDDL
       
    72 $(PROTO_BIN)/% $(PROTO_RAD)/% := FILEMODE = 0555
       
    73 $(PROTO_BIN)/% \
       
    74 	$(PROTO_ETC_VPANELS)/% \
       
    75 	$(PROTO_ETC_UATTR.D)/% \
       
    76 	$(PROTO_HELP_AUTHS)/% \
       
    77 	$(PROTO_HELP_PROFS)/% \
       
    78 	$(PROTO_MFS_NETWORK)/% \
       
    79 	$(PROTO_MFS_SYSTEM)/% \
       
    80 	$(PROTO_MTD)/% \
       
    81 	$(PROTO_RAD)/% \
       
    82 	$(PROTO_SCHEMA)/% \
       
    83 	$(PROTO_VP_DIR)/%: %
       
    84 	$(INS.file);
       
    85 	$(RMCDDL)
       
    86 
       
    87 # Proto headers, remove CDDL
       
    88 $(ROOTHDRDIR)/% := FILEMODE = 0644
       
    89 $(ROOTHDRDIR)/%: $(HDRDIR)/%
       
    90 	$(INS.file);
       
    91 	$(RMCDDL)
       
    92 
       
    93 $(ROOTLIBDIR32) $(ROOTLIBDIR64):
       
    94 	$(INS.dir)
       
    95 
       
    96 $(LINTLIB): $(LINTSRCS)
       
    97 	$(LINT.c) -mnuvxy -o $(LIBNAME) $(LINTSRCS) > $(LINTOUT) 2>&1
       
    98 
       
    99 api_%.h api_%_impl.c: $(APISDIR)/%.adr
       
   100 	$(RADADRGEN) -s server -l c -d . $<
       
   101 
       
   102 api_%.h api_%_impl.c: %.adr
       
   103 	$(RADADRGEN) -s server -l c -d . $<
       
   104 
       
   105 .c.o:
       
   106 	$(COMPILE.c) $(OUTPUT_OPTION) $<
       
   107 
       
   108 FRC: