head	1.1;
access;
symbols
	bobbase:1.1
	bob:1.1
	r2_1:1.1
	r2_0:1.1
	r1_1_beta:1.1
	r1_1_alpha:1.1
	r1_0:1.1;
locks; strict;
comment	@# @;


1.1
date	94.05.17.12.49.29;	author thoth;	state Exp;
branches;
next	;


desc
@exec $MAKE to build .o files from each .c file sent on stdin.
@


1.1
log
@Initial revision
@
text
@#!perl

#
#	Copyright 1993, Center for Computer Vision and Visualization,
#	University of Florida.  All rights reserved.
#

#
# $Log: bit-operations.desc,v $

@@filenames = <STDIN>;
foreach (@@filenames) { chop; }

$arl = "";
while (@@ARGV) {
    $_ = shift;
    if (/^-/) {
	$arl = $';
    } else {
	unshift(@@ARGV, $_);
	last;
    }
}

($libname) = @@ARGV;

@@objnames = @@filenames;
foreach (@@objnames) {
    s/\.c$/.o/;
}

#print join("\n", @@objnames);

$childpid = fork;
if ($childpid==0) {
    waitpid($childpid, 0);
} else {
    local($make) =  defined($ENV{MAKE}) ? $ENV{MAKE} : "make";
    exec  $make . " " . join(" ", reverse(@@objnames));
    print  $make . " " . join(" ", @@objnames);
    die "$0: Unable to exec make ($make)\n";
}

if ($? != 0) {
    die "$0: Child make failed.  Aborting\n";
}
@
