Cross Reference: Makefile.riscv
xref: /gem5/tests/test-progs/pthread/Makefile.riscv
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /gem5/tests/test-progs/pthread/
Makefile.riscv revision 12751
1CPP      := riscv64-unknown-linux-gnu-g++
2OBJDUMP  := riscv64-unknown-linux-gnu-objdump
3CPPFLAGS := -g -O3 -static -std=c++11 -march=rv64gc
4LFLAGS := -pthread -Wl,--whole-archive -lpthread -latomic -Wl,--no-whole-archive
5
6SRC_DIR := ./src
7BIN_DIR := ./bin
8
9TEST_SRC := test_pthread_create_seq.cpp \
10            test_pthread_create_para.cpp \
11            test_pthread_mutex.cpp \
12            test_atomic.cpp \
13            test_pthread_cond.cpp \
14            test_std_thread.cpp \
15            test_std_mutex.cpp \
16            test_std_condition_variable.cpp \
17
18TEST_BIN  := $(patsubst %.cpp,%,$(TEST_SRC))
19TEST_DUMP := $(patsubst %.cpp,%.objdump,$(TEST_SRC))
20
21# Rules
22
23.PHONY: default clean
24
25default: $(TEST_BIN)
26
27$(TEST_BIN):
28	mkdir -p $(BIN_DIR)
29	$(CPP) $(CPPFLAGS) $(SRC_DIR)/$@.cpp $(LFLAGS) -o $(BIN_DIR)/$@
30
31clean:
32	$(RM) -r $(BIN_DIR)/*
33

Indexes created Thu Sep 26 06:36:22 EDT 2019