ccubes-cl/Makefile

20 lines
260 B
Makefile
Raw Normal View History

NAME = test_ccubes
2025-03-20 19:32:25 +02:00
SRCS = $(shell find . -maxdepth 1 -type f -name '*.c')
OBJS = $(SRCS:.c=.o)
LDLIBS += -lOpenCL
.PHONY: all clean test
all: ${NAME}
${NAME}: ${OBJS}
${CC} ${LDFLAGS} $^ ${LDLIBS} -o $@
test:
./${NAME}
clean:
@${RM} ${NAME} ${OBJS}