main
test-branch
| Line | |
|---|
| 1 | # a test makefile for ROSE
|
|---|
| 2 | # e.g. make all -k -j32
|
|---|
| 3 | C_SOURCE_FILES = $(shell ls ../micro-benchmarks/*.c)
|
|---|
| 4 | CXX_SOURCE_FILES = $(shell ls ../micro-benchmarks/*.cpp)
|
|---|
| 5 |
|
|---|
| 6 | POLYFLAG="../micro-benchmarks/utilities/polybench.c -I ../micro-benchmarks -I ../micro-benchmarks/utilities -DPOLYBENCH_NO_FLUSH_CACHE -DPOLYBENCH_TIME -D_POSIX_C_SOURCE=200112L"
|
|---|
| 7 |
|
|---|
| 8 | C_OBJ_FILES = $(C_SOURCE_FILES:.c=*.o)
|
|---|
| 9 | CXX_OBJ_FILES = $(CXX_SOURCE_FILES:.cpp=*.o)
|
|---|
| 10 |
|
|---|
| 11 | all:$(C_OBJ_FILES) $(CXX_OBJ_FILES)
|
|---|
| 12 |
|
|---|
| 13 | %.o: %.c
|
|---|
| 14 | $(ROSE_INSTALL)/bin/identityTranslator -c -std=c99 -rose:openmp:ast_only $<
|
|---|
| 15 | %.o: %.cpp
|
|---|
| 16 | $(ROSE_INSTALL)/bin/identityTranslator -c -rose:openmp:ast_only $<
|
|---|
| 17 |
|
|---|
| 18 | clean:
|
|---|
| 19 | rm -rf *.o rose_*.c rose_*.cpp
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.