summaryrefslogtreecommitdiffstatshomepage
path: root/src/build
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-06-21 08:44:45 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-06-21 08:44:45 +0200
commit6ff3f77b9634d4fdce82d7ac9c0d184a8db3f404 (patch)
treeb18a489aaa2d23cb07cb83acef82adc2ce5ea624 /src/build
parentfa6a859646d83736bccb647ae0aefda28d1c73d7 (diff)
Fix and optimization (nw)
Diffstat (limited to 'src/build')
-rw-r--r--src/build/makedep.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build/makedep.py b/src/build/makedep.py
index 573960dfb89..6e8c3fd282d 100644
--- a/src/build/makedep.py
+++ b/src/build/makedep.py
@@ -145,6 +145,8 @@ def parse_file(root, srcfile, folder):
fullname = file_exists(root, name, folder,include_dirs)
if fullname in files_included:
continue
+ if "src/emu/netlist/" in fullname:
+ continue
if fullname!='':
if fullname in mappings.keys():
if not(mappings[fullname] in components):
@@ -152,7 +154,8 @@ def parse_file(root, srcfile, folder):
files_included.append(fullname)
newfolder = fullname.rsplit('/', 1)[0] + '/'
parse_file(root, fullname, newfolder)
- parse_file(root, fullname.replace('.h','.c'), newfolder)
+ if (fullname.endswith('.h')):
+ parse_file(root, fullname.replace('.h','.c'), folder)
continue
return 0