Home | History | Annotate | Download | only in mys
      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/CDDL.txt
      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/CDDL.txt
     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 2006 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 
     27 #ident	"@(#)Makefile	1.8	07/06/06 SMI"
     28 
     29 # cmd/ha-services/gds-data/mys/Makefile
     30 #
     31 
     32 # list the content of the components bin directory $PKGNAME/bin
     33 
     34 KSH_BIN_SRCS = functions.ksh \
     35 		control_mysql.ksh \
     36 		probe_mysql.ksh \
     37 		probe_smf_mysql.ksh \
     38 		start_mysql.ksh \
     39 		stop_mysql.ksh
     40 
     41 # list the configuration script of the components etc directory $PKGNAME/etc
     42 
     43 CONF = config \
     44 	my.cnf_sample_master \
     45 	my.cnf_sample_slave
     46 
     47 # list the ksh content of the common lib directory $PKGNAME/lib
     48 
     49 KSH_LIB_SRCS = functions_static.ksh
     50 
     51 # list the content of the components util directory $PKGNAME/util
     52 
     53 KSH_UTIL_SRCS = ha_mysql_config.ksh \
     54 		ha_mysql_register.ksh \
     55 		ha_mysql_smf_register.ksh \
     56 		ha_mysql_smf_remove.ksh \
     57 		mysql_config.ksh \
     58 		mysql_register.ksh
     59 
     60 # definition for the ksh substitution
     61 
     62 LIBPROG = $(KSH_LIB_SRCS:%.ksh=%)
     63 	
     64 UTILPROG = $(KSH_UTIL_SRCS:%.ksh=%)
     65 
     66 # assembly of the PROG variable
     67 
     68 PROG = $(KSH_BIN_SRCS:%.ksh=%)
     69 
     70 include $(SRC)/cmd/Makefile.cmd
     71 
     72 # Packaging
     73 PKGNAME = SUNWscmys
     74 RTRFILE = SUNW.mys
     75 
     76 # Disable I18N stuff, the po filename needs to be unique to support parallel builds of the agents below gds-agents
     77 POFILE= $(PKGNAME).po
     78 PIFILES=
     79 
     80 # Disable lint
     81 LINTFILES=
     82 
     83 .KEEP_STATE:
     84 
     85 all: $(PROG) $(UTILPROG) $(LIBPROG)
     86 
     87 .PARALLEL: $(PROG) $(UTILPROG) $(LIBPROG)
     88 
     89 install: all $(ROOTOPTBINPROG) $(ROOTOPTETCRTR) $(ROOTOPTETCCONF) $(ROOTOPTUTILPROG) $(ROOTOPTLIBKSHPROG)
     90 
     91 include $(SRC)/cmd/Makefile.targ
     92 
     93 clean:
     94 	$(RM) $(PROG) $(UTILPROG) $(LIBPROG) 
     95