CFLAGS=-g COMMON_OBJECTS = cl_simple.o cl_util.o LDFLAGS = -L/usr/local/lib -lOpenCL all: hello_world math-int get-global-id get-global-id-2d loop hello_world: hello_world.o $(COMMON_OBJECTS) gcc -o $@ $^ $(LDFLAGS) math-int: math-int.o $(COMMON_OBJECTS) gcc -o $@ $^ $(LDFLAGS) get-global-id: get_global_id.o $(COMMON_OBJECTS) gcc -o $@ $^ $(LDFLAGS) get-global-id-2d: get_global_id_2d.o $(COMMON_OBJECTS) gcc -o $@ $^ $(LDFLAGS) loop: loop.o $(COMMON_OBJECTS) gcc -o $@ $^ $(LDFLAGS)