]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blob - src/driver/c64x/make/makefile
Port makefiles to Linux (while still supporting Windows)
[keystone-rtos/ibl.git] / src / driver / c64x / make / makefile
1 #*******************************************************************
2 #* FILE NAME: makefile
3 #*
4 #* DESCRIPTION: Makes the peripheral driver modules
5 #*
6 #*******************************************************************
8 ifndef IBL_ROOT
9         export IBL_ROOT=../../..
10 endif
12 ECODIR= $(IBL_ROOT)/driver
15 # The ethernet driver
16 ETHDIR= eth
17 ETHSRC= net.c arp.c ip.c udp.c bootp.c tftp.c
19 # The stream driver
20 STRMDIR= stream
21 STRMSRC= stream.c
23 # The timer driver
24 TIMDIR= timer
25 TIMSRC= timer.c
27 # The nand driver
28 NANDDIR= nand
29 NANDSRC= nand.c
31 CSRC= $(ETHSRC) $(STRMSRC) $(TIMSRC) $(NANDSRC)
33 .PHONY: driver
36 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
39 C6X_C_DIR=   $(IBL_ROOT)
40 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
41 C6X_C_DIR+= ;$(ECODIR)
42 C6X_C_DIR+= ;$(STDINC)
43 C6X_C_DIR+= ;$(IBL_ROOT)/driver/timer
44 C6X_C_DIR+= ;$(IBL_ROOT)/driver/stream
45 C6X_C_DIR+= ;$(IBL_ROOT)/driver/nand
46 C6X_C_DIR+= ;$(IBL_ROOT)/cfg/$(TARGET)
47 C6X_C_DIR+= ;$(IBL_ROOT)/hw/timer
48 C6X_C_DIR+= ;$(IBL_ROOT)/hw/nands
49 export C6X_C_DIR
51 vpath % $(subst ;,$(PATHSEP), $(ECODIR)/$(ETHDIR); $(ECODIR)/$(STRMDIR); $(ECODIR)/$(TIMDIR); $(ECODIR)/$(NANDDIR) )
54 driver: gen_cdefdep makefile $(OBJS)
56 $(OBJS): cdefdep
59 gen_cdefdep:
60         @echo Checking command line dependencies
61         @echo $(ENDIAN) $(TARGET) > cdefdep.tmp
62         @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '