2cfead40a5eb8c428d9564507ce591571a318a55
1 #****************************************************************************
2 #* FILE NAME: makefile
3 #*
4 #* DESCRIPTION: Makes the data parsers for the IBL
5 #*
6 #****************************************************************************
9 ifndef IBL_ROOT
10 export IBL_ROOT=../../..
11 endif
13 ECODIR= $(IBL_ROOT)/interp
15 # BIS
16 CSRC= bis.c
18 # COFF
19 CSRC += cload.c osal.c
21 # TI BOOT TABLE
22 CSRC += btblpr.c btblwrap.c gem.c
24 # Blob
25 CSRC += blob.c
27 # elf loader files
28 CSRC += dload.c elfwrap.c dlw_client.c dload_endian.c ArrayList.c
31 .PHONY: interp
34 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
37 C6X_C_DIR= $(IBL_ROOT)
38 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
39 C6X_C_DIR+= ;$(ECODIR)
40 C6X_C_DIR+= ;$(STDINC)
41 C6X_C_DIR+= ;$(IBL_ROOT)/cfg/$(TARGET)
42 export C6X_C_DIR
45 vpath % $(ECODIR)/bis
46 vpath % $(ECODIR)/coff
47 vpath % $(ECODIR)/btbl
48 vpath % $(ECODIR)/blob
49 vpath % $(ECODIR)/elf
51 interp: gen_cdefdep makefile $(OBJS)
54 $(OBJS): cdefdep
58 gen_cdefdep:
59 @echo Checking command line dependencies
60 @echo $(ENDIAN) $(TARGET) $(ARCH) > cdefdep.tmp
61 @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '