3 # unix.pl - the standard unix makefile stuff.
16 { $cflags="-g2 -ggdb"; }
18 { $cflags="-O3 -fomit-frame-pointer"; }
38 # static library stuff
41 $ranlib=&which
("ranlib") or $ranlib="true";
58 local($obj,$target,$name,$shlib)=@_;
61 $target =~ s/\//$o/g if $o ne '/';
63 ($Name=$name) =~ tr/a-z/A-Z/;
65 $ret.="$target: \$(${Name}OBJ)\n";
66 $ret.="\t\$(RM) $target\n";
67 $ret.="\t\$(MKLIB) $target \$(${Name}OBJ)\n";
68 $ret.="\t\$(RANLIB) $target\n\n";
73 local($target,$files,$dep_libs,$libs)=@_;
76 $file =~ s/\//$o/g if $o ne '/';
78 $ret.="$target: $files $dep_libs\n";
79 $ret.="\t\$(LINK) ${efile}$target \$(LFLAGS) $files $libs\n\n";
87 foreach $path (split /:/, $ENV{PATH})