summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libbsp/m68k/ods68302/start/Makefile.am
blob: 44eb1d470804afaa6f8c187166c504dd19070cff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
  
       
  
 





                                                                           

                          
                                              


                                

                                                     
                                       






                                          
                                                        
 

                                               
 
                              


                                           



                                                                                                                              
                                                   
##
## $Id$
##

# FIXME: Better merge both files into one and use #ifdef GDB_MONITOR_ACTIVE
if ODS68302_DEBUG
RESET_S_FILES = debugreset.S
else
RESET_S_FILES = reset.S
endif

S_FILES = $(RESET_S_FILES)
S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT))

OBJS = $(S_O_FILES) $(C_O_FILES)

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

#
# (OPTIONAL) Add local stuff here using +=
#

AM_CFLAGS += $(CFLAGS_V)

project_lib_DATA = $(ARCH)/start$(LIB_VARIANT).$(OBJEXT)

$(ARCH)/start.$(OBJEXT): $(OBJS)
	cp $(S_O_FILES) $(ARCH)/start.$(OBJEXT)

all-local: $(TMPINSTALL_FILES)

EXTRA_DIST = cpuboot.c debugreset.S reset.S

${PROJECT_RELEASE}/lib/start$(LIB_VARIANT).$(OBJEXT): $(ARCH)/start$(LIB_VARIANT).$(OBJEXT) ${PROJECT_RELEASE}/lib/$(dirstamp)
	$(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/start$(LIB_VARIANT).$(OBJEXT)
TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/start$(LIB_VARIANT).$(OBJEXT)

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