#====================================================================
# ------------------------
# | CVS File Information |
# ------------------------
#
# $RCSfile$
#
# $Author$
#
# $Date$
#
# $Revision$
#
# $Name$
#====================================================================

#
# Makefile for machine dependent directories
#

ifndef DCC
DCC=$(CC)
endif

include $(OBJS:.o=.d)

%.o:	%.c
	@echo "Compiling $<"
	$(CC) $(DEFS) -c $<
%.d:	%.c
	@echo "(Re)Building dependency for $<"
	@$(SHELL) -ec '$(DCC) $(DEFS) $(INCS) -M $< | sed '\''s/$*.o/& $@/g'\'' > $@'

$(TARGET):	$(OBJS) $(OBJS:.o=.d)
		@echo "Linking to create executable..."
		$(CC) $(OBJS) -o $(TARGET) $(LIBS)
