#----------------------------------------------------------------------------
#
# Examples makefile.
#
# $Ident: This file is part of the 'Gt-library' 1.0.0 $
# $Copyright: (C) 1997 by Gran Gustafsson $
#
#----------------------------------------------------------------------------

#----------------------------------------------------------------------------
# Include configuration
#----------------------------------------------------------------------------
include ../makefile.cfg


#----------------------------------------------------------------------------
# Sources & Objects
#----------------------------------------------------------------------------
SRCS = demo.cc labels.cc buttons.cc

OBJS = demo.o labels.o buttons.o


#----------------------------------------------------------------------------
# Targets
#----------------------------------------------------------------------------

all : demo

demo : ../$(GTLIB) $(OBJS)
	$(CEXE) demo $(OBJS) ../$(GTLIB) $(LIBS)

%.o : %.cc
	$(COBJ) $<
	
include .depend

.depend : $(SRCS)
	$(MKDEP) $(SRCS) >.depend
	
#----------------------------------------------------------------------------
# Specials
#----------------------------------------------------------------------------

clean :
	rm -f $(OBJS)
	
cleanx : clean
	$(RM) demo
