nn-testing/Makefile
2023-10-29 21:34:23 +01:00

22 lines
331 B
Makefile

SRC=src
BUILD=build
CFLAGS=-Wall -g
.PHONY: all
all:
mkdir -p $(BUILD)
gcc -lOpenCL -lm $(CFLAGS) -o $(BUILD)/cltest $(SRC)/cltest.c $(SRC)/clm.c
.PHONY: run
run: all
$(BUILD)/cltest
.PHONY: cl
cl:
mkdir -p $(BUILD)
gcc -lOpenCL -lm $(CFLAGS) -o $(BUILD)/cl $(SRC)/cl.c $(SRC)/clm.c
.PHONY: cl_run
cl_run: cl
$(BUILD)/cl