nn-testing/Makefile

22 lines
318 B
Makefile
Raw Normal View History

2023-07-20 22:34:56 +02:00
SRC=src
BUILD=build
CFLAGS=-Wall -g
.PHONY: all
all:
mkdir -p $(BUILD)
2023-07-27 22:43:11 +02:00
gcc -lOpenCL -lm $(CFLAGS) -o $(BUILD)/cltest $(SRC)/cltest.c $(SRC)/clm.c
2023-07-20 22:34:56 +02:00
.PHONY: run
run: all
$(BUILD)/cltest
.PHONY: cl
cl:
mkdir -p $(BUILD)
gcc -lOpenCL -lm $(CFLAGS) -o $(BUILD)/cl $(SRC)/cl.c
.PHONY: cl_run
cl_run: cl
$(BUILD)/cl