Home | History | Annotate | Download | only in cifs-client
      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 # ident	"@(#)Makefile.targ	1.4	09/05/21 SMI"
     27 #
     28 
     29 TEST_SUITE_DIR  = $(CTI_SUITE)
     30 
     31 $(SUBDIRS): FRC
     32 	cd $@; pwd; $(MAKE) $(TARGET)
     33 
     34 $(LINK_SUBDIRS): FRC
     35 	cd $@; pwd; $(MAKE) $(TARGET)
     36 
     37 $(BIN_DIR)/%: %.c
     38 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
     39 
     40 $(BIN_DIR)/%: %.sh
     41 	@$(RM) $@
     42 	cp $< $@
     43 	@chmod a+x $@
     44 
     45 $(BIN_DIR)/%: %.ksh
     46 	@$(RM) $@
     47 	cp $< $@
     48 	@chmod a+x $@
     49 
     50 $(BIN_DIR)/%: %.pl
     51 	@$(RM) $@
     52 	cp $< $@
     53 	@chmod a+x $@
     54 
     55 $(BIN_DIR)/%: %.exp
     56 	$(RM) $@
     57 	echo \#!/bin/sh > $@
     58 	echo \# \\ >> $@
     59 	echo exec \$${EXPECT:-/opt/sfw/bin/expect} \"\$$0\" \$${1+\"\$$@\"} \
     60 	    >> $@
     61 	$(CAT) $< >> $@
     62 	$(CHMOD) +x $@
     63 
     64 $(BIN_DIR)/%: %
     65 	@$(RM) $@
     66 	cp $< $@
     67 	@chmod a+x $@
     68 
     69 $(BIN_DIR) :
     70 	@mkdir -m777 -p $(BIN_DIR)
     71 
     72 remove-directories : 
     73 	@$(RM) -r $(BIN_DIR) $(LIB_DIR)
     74 
     75 FRC:
     76 
     77