-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile
31 lines (21 loc) · 810 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Your login. For example, mine is dt10. Yours
# won't be eie2ugs...
LOGIN ?= eie2ugs
CPPFLAGS += -W -Wall -g
CPPFLAGS += -I include
CFLAGS += -std=c99
CXXFLAGS += -std=c++11
# 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)
fragments/run_fibonacci : $(DEFAULT_OBJECTS) $(USER_CPU_OBJECTS)
fragments/run_addu : $(DEFAULT_OBJECTS) $(USER_CPU_OBJECTS)