Changeset 323

Show
Ignore:
Timestamp:
01/03/06 12:39:09
Author:
ben
Message:

Preliminary setup to allow the use of oink.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openpgpsdk/trunk/Makefile

    r315 r323  
    2525        (cd $$d; echo "+++ make clean in $$d"; make clean; echo "--- $$d"); \ 
    2626        done 
     27        find . -name '*.core' | xargs rm 
    2728 
    2829Makefiles: 
     
    4445        cov-build --dir coverity make 
    4546        cd coverity && cov-analyze -e emit/ --outputdir output/ --enable VOLATILE --security --enable CHROOT --enable OPEN_ARGS --enable SECURE_CODING --enable SECURE_TEMP --enable TAINTED_POINTER --enable TOCTTOU && cov-commit-errors -e ./emit -o ./output -d /home/rachel/openpgpsdk/coverity/database/ --name ben 
     47 
     48oink: 
     49        rm -rf oink-links 
     50        mkdir oink-links 
     51        cd oink-links \ 
     52        && find ../src ../examples -name '*.[ihc]' -exec ln -s {} \; \ 
     53        && ln -s ../util/Makefile.oink Makefile 
  • openpgpsdk/trunk/configure

    r304 r323  
    1313our $Log; 
    1414our $LogFile='/dev/null'; 
     15 
     16my $use_oink; 
    1517 
    1618sub trace { 
     
    6163              my $cc=shift; 
    6264              $Subst{CC}=$cc; 
    63           } 
     65          }, 
     66          '--oink=' => sub { 
     67              $Subst{OINK}=shift; 
     68          }, 
    6469         ); 
    6570 
     
    99104 
    100105$Subst{'CC'}=getKnowledge('cc'); 
     106 
    101107$Subst{'CFLAGS'}.=' '.getKnowledge('base_cflags'); 
    102108 
     
    109115#exit; 
    110116 
     117if($Subst{OINK}) { 
     118    use Cwd; 
     119    my $path=getcwd(); 
     120    $Subst{CC}="$path/util/oink_cc.pl --cc=$Subst{CC}"; 
     121} 
     122 
    111123fixSubst(); 
     124 
     125my $path=`pwd`; 
     126chomp $path; 
     127 
    112128 
    113129create('src/.depend'); 
     
    116132fileSubst('src/Makefile','#',''); 
    117133fileSubst('examples/Makefile','#',''); 
     134fileSubst('util/Makefile.oink','#',''); 
    118135fileSubst('include/openpgpsdk/configure.h','/*','*/'); 
    119136 
  • openpgpsdk/trunk/examples

    • Property svn:ignore changed from create-key create-signed-key verify packet-dump .depend Makefile sign-inline verify2 sign-detached dmalloc.log to create-key create-signed-key verify packet-dump .depend Makefile sign-inline verify2 sign-detached dmalloc.log *.i
  • openpgpsdk/trunk/examples/Makefile.template

    r317 r323  
    4343 
    4444clean: 
    45         rm -f $(EXES) *.o 
     45        rm -f $(EXES) *.o *.i 
    4646        rm -f TAGS 
    4747 
  • openpgpsdk/trunk/src

    • Property svn:ignore changed from packet-dump .depend verify libops.a Makefile to packet-dump .depend verify libops.a Makefile *.i
  • openpgpsdk/trunk/src/Makefile.template

    r300 r323  
    2424 
    2525clean: 
    26         rm -f packet-dump verify *.o 
     26        rm -f packet-dump verify *.o *.i 
    2727        rm -f libops.a TAGS 
    2828