#*******************************************************************************
#
#                   SiRF Technology, Inc. GPS Software                    
#                                                                         
#    Copyright (c) 1996-2015 by SiRF Technology, Inc. a CSR plc Company   
#                          All rights reserved.                           
#                                                                         
#    This Software is protected by United States copyright laws and       
#    international treaties.  You may not reverse engineer, decompile     
#    or disassemble this Software.                                        
#                                                                         
#    WARNING:                                                             
#    This Software contains SiRF Technology Inc.s confidential and        
#    proprietary information. UNAUTHORIZED COPYING, USE, DISTRIBUTION,    
#    PUBLICATION, TRANSFER, SALE, RENTAL OR DISCLOSURE IS PROHIBITED      
#    AND MAY RESULT IN SERIOUS LEGAL CONSEQUENCES.  Do not copy this      
#    Software without SiRF Technology, Inc.s  express written             
#    permission.   Use of any portion of the contents of this Software    
#    is subject to and restricted by your signed written agreement with   
#    SiRF Technology, Inc.                                                
#                                                                             
#*******************************************************************************

# Makefile for UART SIRFflashEngineEP library

TDIR = ../../../../src
COMDIR = ../../../../../../common
VPATH = $(TDIR)

OBJS = SiRFflashEngineEP.o target_uart.o loader.o chksum.o command.o \
       pckunpck.o sndrcv.o targetInfo.o

CC = gcc
AR = ar
CFLAGS= -I$(TDIR) -I$(COMDIR) -c -O2 -DCOMM_UART

all: SiRFflashEngineEP_uart.a

SiRFflashEngineEP_uart.a : $(OBJS)
	$(AR) -rcvs $@ $^


%.a : $(OBJS)
	$(AR) -rcvs $@ $^

%.o : %.c
	$(CC) -c $(CFLAGS) -o $@ $^
	  
clean:
	rm -f *.o SiRFflashEngineEP_uart.a

.PRECIOUS : %.o
