diff --git a/scratch/subdir/scratch-simulator-subdir.cc b/scratch/subdir/scratch-simulator-subdir.cc new file mode 100644 index 000000000..f11de3ccd --- /dev/null +++ b/scratch/subdir/scratch-simulator-subdir.cc @@ -0,0 +1,27 @@ +/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "ns3/core-module.h" + +NS_LOG_COMPONENT_DEFINE ("ScratchSimulator"); + +using namespace ns3; + +int +main (int argc, char *argv[]) +{ + NS_LOG_UNCOND ("Scratch Simulator"); +} diff --git a/wscript b/wscript index 2967820c7..04d46f729 100644 --- a/wscript +++ b/wscript @@ -625,7 +625,7 @@ def add_scratch_programs(bld): if os.path.isdir(os.path.join("scratch", filename)): obj = bld.create_ns3_program(filename, all_modules) obj.path = obj.path.find_dir('scratch').find_dir(filename) - obj.find_sources_in_dirs('.') + obj.source = obj.path.ant_glob('*.cc') obj.target = filename obj.name = obj.target obj.install_path = None