aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile23
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)