#***********************************************************************
#
# Licensed Materials - Property of IBM
#
# (C) Copyright IBM Corp. 2011
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#***********************************************************************

CC		= gcc
BITS		= -m64
CFLAGS		= -Wall -I ../../clu -O3 $(BITS)
LDFLAGS		= -lOpenCL -lstdc++ $(BITS)

vpath	%.c	../src ../../clu 

PROGS           = print_info
OBJS		= print_info.o clu.o

DEPS    	= $(OBJS:.o=.d) 

%.d: %.c
	@$(CC) -M $(CFLAGS) $< | sed 's/$*.o/& $@/g' > $@


.PHONY: all 
all:	$(PROGS)

print_info: $(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)

.PHONY: clean
clean:
	@rm -f $(PROGS) $(OBJS) $(DEPS)

-include $(DEPS)




