2006-08-26 11:35:28 +00:00
|
|
|
: # -*-Mode: perl;-*- use perl, wherever it is
|
|
|
|
eval 'exec perl -wS $0 ${1+"$@"}'
|
|
|
|
if 0;
|
|
|
|
# DESCRIPTION: Print include statements for each ARGV
|
|
|
|
#
|
2016-01-07 01:36:41 +00:00
|
|
|
# Copyright 2003-2016 by Wilson Snyder. This package is free software; you can
|
2009-05-04 21:07:57 +00:00
|
|
|
# redistribute it and/or modify it under the terms of either the GNU Lesser
|
|
|
|
# General Public License Version 3 or the Perl Artistic License Version 2.0.
|
2006-08-26 11:35:28 +00:00
|
|
|
######################################################################
|
|
|
|
|
|
|
|
require 5.005;
|
|
|
|
use warnings;
|
2009-12-03 01:09:13 +00:00
|
|
|
print "// DESCR"."IPTION: Generated by verilator_includer via makefile\n";
|
2006-08-26 11:35:28 +00:00
|
|
|
foreach my $param (@ARGV) {
|
2014-11-27 15:52:38 +00:00
|
|
|
if ($param =~ /^-D([^=]+)=(.*)/) {
|
|
|
|
print "#define $1 $2\n"
|
|
|
|
} else {
|
|
|
|
print "#include \"$param\"\n"
|
|
|
|
}
|
2006-08-26 11:35:28 +00:00
|
|
|
}
|