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

CC		= gcc
BITS		= 
CFLAGS		= -Wall -I../common -O3 ${BITS}
LDFLAGS		= ${BITS} -lglut
OBJS		= viewer.o network_utils.o gl_viewer.o clock.o

vpath	%.c	../common

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

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

viewer : $(OBJS)

-include $(DEPS)

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