# Makefile
#-----------------------------------------------------
TOPDIR  :=  $(shell /bin/pwd)
TOPDIR  :=  $(TOPDIR)/..

include $(TOPDIR)/prerules.mk
#-----------------------------------------------------
CCFLAGS=-c
ARFLAGS=rc


BIN_EXEC = tzoupdate
OBJS_EXEC = tzoupdate.o #linksys_custom.o
LIBS =-lprofile -llog -lflash -lutility

all: $(BIN_EXEC)

$(BIN_EXEC): $(OBJS_EXEC)
	$(CC) -Wall  -L $(COMM_LIB_PATH) -s -o $@ $^ $(LIBS)
	$(STRIP) tzoupdate

.c.o:
	$(CC) $(CFLAGS) $(CCFLAGS) -I $(COMM_INC_PATH) $<

clean:
	rm -f *.[oad] *.bak
	rm -f tzoupdate

install:
	cp -af $(BIN_EXEC) $(T_USBIN)

#-----------------------------------------------------
include $(TOPDIR)/rules.mk
#-----------------------------------------------------
#end of makefile.
