summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libbsp/sh/gensh2/Makefile.am
blob: 21224fc9712e5e51595e2d0330afae5cfc87aabb (plain) (tree)
1
2
3
4
5
6
7
8
9
                                        
 
                                                     
 

                                  


                                 
                                              
 
                                          
                                                            
                                  
 
 


                                            
                                  
 


                                                                
                            
                  
 




                                                
                     
 
         

                                       
                                  
                                                                               
                                          

                                                               
                                           





                                                              
 

                                                             

                                                             

                                                             
 
                               
                                                   
ACLOCAL_AMFLAGS = -I ../../../../aclocal

include $(top_srcdir)/../../../../automake/compile.am

include_bspdir = $(includedir)/bsp

dist_project_lib_DATA = bsp_specs

include_HEADERS = include/bsp.h
include_HEADERS += ../../shared/include/tm27.h

nodist_include_HEADERS = include/bspopts.h
nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
DISTCLEANFILES = include/bspopts.h


EXTRA_DIST = start/start.ram start/start.rom
noinst_LIBRARIES = libbspstart.a
libbspstart_a_SOURCES = start/start.S
project_lib_DATA = start.$(OBJEXT)

dist_project_lib_DATA += startup/linkcmds startup/linkcmds.ram \
    startup/linkcmds.rom

noinst_LIBRARIES += libbsp.a
libbsp_a_SOURCES =

SHGEN = $(PROJECT_TOPdir)/tools/cpu/sh/shgen

scitab.c: $(SHGEN)
	$(SHGEN) -H @CPU_CLOCK_RATE_HZ@ sci > $@
BUILT_SOURCES = scitab.c
CLEANFILES = scitab.c

# startup
libbsp_a_SOURCES += startup/hw_init.c \
    ../../shared/bsppredriverhook.c \
    ../shared/startup/bspstart.c \
    ../../shared/bspgetworkarea.c ../../shared/sbrk.c ../../shared/bootcard.c \
    ../../shared/getentropy-cpucounter.c \
    ../../shared/gnatinstallhandler.c ../../shared/bspclean.c \
    ../shared/bsphwinit.c
libbsp_a_SOURCES += ../../shared/bspreset.c
# scitab
libbsp_a_SOURCES += scitab.c
# console
libbsp_a_SOURCES += ../../sh/shared/console.c console/config.c
# debugio
libbsp_a_SOURCES += ../../shared/dummy_printk_support.c

libbsp_a_LIBADD = \
    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock.rel \
    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/timer.rel \
    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/sci.rel \
    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/score.rel \
    ../../../libcpu/@RTEMS_CPU@/cache.rel

include $(srcdir)/preinstall.am
include $(top_srcdir)/../../../../automake/local.am