add files

This commit is contained in:
2024-12-31 21:38:17 +02:00
commit d1a1486c6d
13 changed files with 1007 additions and 0 deletions

13
Makefile Normal file
View File

@@ -0,0 +1,13 @@
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}