aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorm8pple <dt10@imperial.ac.uk>2015-10-19 16:49:51 +0100
committerm8pple <dt10@imperial.ac.uk>2015-10-19 16:49:51 +0100
commit3dfc42de7a4c6605313abbfc276f8539e39a6422 (patch)
tree1245b075261fb7993e5acf2a3882701848b3d798 /makefile
parentdae28f43f291090bc784384b345514a7edcc0b0e (diff)
downloadMipsCPU-3dfc42de7a4c6605313abbfc276f8539e39a6422.tar.gz
MipsCPU-3dfc42de7a4c6605313abbfc276f8539e39a6422.zip
Added support for nested src directories. Closes #2.
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/makefile b/makefile
index d1aec94..d00ca10 100644
--- a/makefile
+++ b/makefile
@@ -19,7 +19,11 @@ USER_CPU_SRCS = \
$(wildcard src/$(LOGIN)/mips_cpu.c) \
$(wildcard src/$(LOGIN)/mips_cpu.cpp) \
$(wildcard src/$(LOGIN)/mips_cpu_*.c) \
- $(wildcard src/$(LOGIN)/mips_cpu_*.cpp)
+ $(wildcard src/$(LOGIN)/mips_cpu_*.cpp) \
+ $(wildcard src/$(LOGIN)/*/*.c) \
+ $(wildcard src/$(LOGIN)/*/*.cpp) \
+ $(wildcard src/$(LOGIN)/*/*.c) \
+ $(wildcard src/$(LOGIN)/*/*.cpp)
USER_CPU_OBJECTS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(USER_CPU_SRCS)))