#
#  $Id: Makefile 241 2008-10-29 10:59:45Z jcw $
#  $Revision: 241 $
#  $Author: jcw $
#  $Date: 2008-10-29 06:59:45 -0400 (Wed, 29 Oct 2008) $
#  $HeadURL: http://tinymicros.com/svn_public/arm/lpc2148_demo/trunk/uip/apps/webserver/Makefile $
#

SRC_FILES=sntp.c

#
# Define all object files.
#
ARM_OBJ = $(SRC_FILES:.c=.o)

.PHONY: all
ifeq ($(STARTEDATTOP),true)
all: $(ARM_OBJ)
else
all :
	@echo "Project must be rebuilt from top level"
endif

$(ARM_OBJ) : %.o : %.c Makefile .depend
	#$(CC) -c $(CFLAGS) -Wno-cast-align -Wno-sign-compare -Wno-pointer-sign -Wno-strict-aliasing -Wno-missing-field-initializers $< -o $@
	$(CC) -c $(CFLAGS) $< -o $@
	$(AR) rc $(COMMON)/common.a $@

#
#  The .depend files contains the list of header files that the
#  various source files depend on.  By doing this, we'll only
#  rebuild the .o's that are affected by header files changing.
#
.depend:
	$(CC) $(CFLAGS) -M $(SRC_FILES) > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif
