1 #*************************************************************************************
2 #* FILE NAME: makefile
3 #*
4 #* DESCRIPTION: Makes the nand module for the IBL
5 #*
6 #*************************************************************************************/
8 ifndef IBL_ROOT
9 export IBL_ROOT= ../../..
10 endif
12 ECODIR= $(IBL_ROOT)/nandboot
14 CSRC= nandboot.c
16 .PHONY: nandboot
19 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
23 C6X_C_DIR+= $(IBL_ROOT)
24 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
25 C6X_C_DIR+= ;$(IBL_ROOT)/device
26 C6X_C_DIR+= ;$(IBL_ROOT)/device/$(TARGET)
27 C6X_C_DIR+= ;$(IBL_ROOT)/nandboot
28 C6X_C_DIR+= ;$(IBL_ROOT)/driver/nand
29 C6X_C_DIR+= ;$(STDINC)
30 export C6X_C_DIR
34 nandboot: gen_cdefdep makefile $(OBJS)
37 $(OBJS): cdefdep
39 gen_cdefdep:
40 @echo Checking command line dependencies
41 @echo $(ENDIAN) $(TARGET) $(ARCH) $(CDEFS) $(DEBUG) > cdefdep.tmp
42 @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '