revengmc

Clone repo: git clone https://git.topcheto.eu/revengmc.git
All branches, All tags, View raw

File contents

BACKEND ?= gpu
SOURCES := src/stage-1/revengmc.cpp src/stage-1/backends/${BACKEND}.cpp

CPP_FLAGS += -Wall -fdiagnostics-color=always -g --std=c++17
CPP_LDFLAGS += -lOpenCL

.PHONY: gpu cpu dummy
gpu: bin/revengmc-gpu
cpu: bin/revengmc-cpu
dummy: bin/revengmc-dummy

bin/revengmc-%: src/stage-1/revengmc.cpp src/stage-1/backends/%.cpp
	g++ ${CPP_FLAGS} $^ -o $@ ${CPP_LDFLAGS}