OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [pc386/] [start/] [Makefile.am] - Blame information for rev 493

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
##
2
## $Id: Makefile.am,v 1.2 2001-09-27 11:59:48 chris Exp $
3
##
4
 
5
AUTOMAKE_OPTIONS = foreign 1.4
6
 
7
PGMS = $(ARCH)/start.o $(ARCH)/start16.bin
8
 
9
S_FILES = start16.S start.S
10
S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
11
 
12
OBJS = $(S_O_FILES)
13
 
14
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
15
include $(top_srcdir)/../../../../../../automake/lib.am
16
 
17
#
18
# (OPTIONAL) Add local stuff here using +=
19
#
20
 
21
if RTEMS_GAS_CODE16
22
AM_CPPFLAGS += -DNEW_GAS
23
endif
24
 
25
LINKCMDS = $(top_srcdir)/startup/linkcmds
26
 
27
$(ARCH)/start16.o: start16.S
28
        $(COMPILE.S) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ $<
29
 
30
$(ARCH)/start16.bin: $(ARCH)/start16.o
31
        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib        --oformat=elf32-i386 -o $(basename $@).obj $(basename $@).o
32
        $(OBJCOPY) -O binary $(basename $@).obj $@
33
 
34
$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin: $(ARCH)/start16.bin
35
        $(INSTALL_DATA) $< $@
36
 
37
$(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o: $(ARCH)/start.o
38
        $(INSTALL_DATA) $< $@
39
 
40
TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin \
41
    $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
42
 
43
all-local: $(ARCH) $(OBJS) $(TMPINSTALL_FILES)
44
 
45
EXTRA_DIST = start.S start16.S
46
 
47
include $(top_srcdir)/../../../../../../automake/local.am

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.