12 CFLAGS += -std=c99 -g -Wall -Wextra -pedantic
15 SPARSEFLAGS=-Wsparse-all -Wno-decl
17 # BSD make does not define RM
20 # Common library includes
21 LDLIBS = -lOpenCL -ldl
23 # OS-specific library includes
24 LDLIBS_Darwin = -framework OpenCL
25 LDLIBS_Darwin_exclude = -lOpenCL
27 LDLIBS += $(LDLIBS_${OS})
29 # Remove -lOpenCL if OS is Darwin
30 LDLIBS := $(LDLIBS:$(LDLIBS_${OS}_exclude)=)
34 clinfo.o: clinfo.c $(HDR)
40 $(SPARSE) $(CPPFLAGS) $(CFLAGS) $(SPARSEFLAGS) $^