ccubes-cl/regress/Makefile

20 lines
220 B
Makefile
Raw Normal View History

2025-03-20 16:28:25 +02:00
NAME = cl-hello
SRCS = cl-hello.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}