Skip to content
Snippets Groups Projects
Verified Commit d195daa9 authored by Dorian Stoll's avatar Dorian Stoll
Browse files

rodinia-srad: c: Convert to meson

parent 3b74728d
No related branches found
No related tags found
No related merge requests found
option(
'rodinia_srad_output',
type: 'boolean',
value: false,
)
subdir('rodinia-srad')
subdir('zellularautomat')
SHELL=/bin/sh -ue
CFLAGS += -O2
CXXFLAGS += -O2
ifdef OUTPUT
CPPFLAGS += -DOUTPUT
endif
ifdef DEBUG
CFLAGS += -g
CXXFLAGS += -g
endif
# include Make.user relative to every active Makefile, exactly once
MAKEFILE_DIRS = $(foreach MAKEFILE,$(realpath $(MAKEFILE_LIST)), $(shell dirname $(MAKEFILE)))
$(foreach DIR,$(sort $(MAKEFILE_DIRS)),\
$(eval -include $(DIR)/Make.user)\
)
CFLAGS += -fopenmp
CXXFLAGS += -fopenmp
LDLIBS += -fopenmp
EXE = srad
.PHONY: all
all: $(EXE)
.PHONY: clean
clean:
$(RM) $(EXE)
sources = [
'srad.cpp',
]
dependencies = [
dependency('openmp'),
]
options = [
'c_std=c99',
]
cxxflags = []
if get_option('rodinia_srad_output')
cxxflags += ['-DOUTPUT']
endif
executable(
'rodinia-srad-c',
sources,
cpp_args: cxxflags,
dependencies: dependencies,
override_options: options,
)
subdir('c')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment