diff options
author | m8pple <dt10@imperial.ac.uk> | 2014-10-16 13:44:26 +0100 |
---|---|---|
committer | m8pple <dt10@imperial.ac.uk> | 2014-10-16 13:44:26 +0100 |
commit | 39288a6d59759b1a57ba00b845a01c7973f37c09 (patch) | |
tree | fb83fd0e4acea7c9a1f7493b9251ce854e21b86e /makefile | |
parent | 904de2b44ee9ea9d38b71764d12fc6fe6546be3c (diff) | |
download | MipsCPU-39288a6d59759b1a57ba00b845a01c7973f37c09.tar.gz MipsCPU-39288a6d59759b1a57ba00b845a01c7973f37c09.zip |
Initial push.
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..9a02e82 --- /dev/null +++ b/makefile @@ -0,0 +1,23 @@ +# Your login. For example, mine is dt10. Yours +# won't be eie2ugs... +LOGIN ?= eie2ugs + +CPPFLAGS += -W -Wall -g +CPPFLAGS += -I include + +# Force the inclusion of C++ standard libraries +LDLIBS += -lstdc++ + +DEFAULT_OBJECTS = \ + src/shared/mips_test_framework.o \ + src/shared/mips_mem_ram.o + +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) + +USER_CPU_OBJECTS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(USER_CPU_SRCS))) + +src/$(LOGIN)/test_mips : $(DEFAULT_OBJECTS) $(USER_CPU_OBJECTS) |