source: rtems/c/src/lib/libbsp/i386/pc386/start/Makefile.am @ 9dffd2de

4.104.114.84.95
Last change on this file since 9dffd2de was 9dffd2de, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 2, 2003 at 5:40:05 AM

2003-12-02 Ralf Corsepius <corsepiu@…>

  • 3c509/Makefile.am: Remove all-local: $(ARCH).
  • clock/Makefile.am: Remove all-local: $(ARCH).
  • console/Makefile.am: Remove all-local: $(ARCH).
  • ide/Makefile.am: Remove all-local: $(ARCH).
  • ne2000/Makefile.am: Remove all-local: $(ARCH).
  • start/Makefile.am: Remove all-local: $(ARCH).
  • startup/Makefile.am: Remove all-local: $(ARCH).
  • timer/Makefile.am: Remove all-local: $(ARCH).
  • wd8003/Makefile.am: Remove all-local: $(ARCH).
  • wrapup/Makefile.am: Remove all-local: $(ARCH).
  • Property mode set to 100644
File size: 1.5 KB
Line 
1##
2## $Id$
3##
4
5S_FILES = start16.S start.S
6S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT))
7
8OBJS = $(S_O_FILES)
9
10include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
11include $(top_srcdir)/../../../../automake/compile.am
12include $(top_srcdir)/../../../../automake/lib.am
13
14#
15# (OPTIONAL) Add local stuff here using +=
16#
17
18LINKCMDS = $(top_srcdir)/startup/linkcmds
19
20START_O_FILES = $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).$(OBJEXT)
21START_O_FILES += $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin
22
23install-data-local: $(START_O_FILES)
24        @$(mkinstalldirs) $(DESTDIR)$(bsplibdir)
25        list='$(START_O_FILES)'; for i in $$list; do \
26        $(INSTALL_DATA) $$i $(DESTDIR)$(bsplibdir); \
27        done
28
29$(ARCH)/start16.$(OBJEXT): start16.S
30        $(COMPILE.S) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ $<
31
32$(ARCH)/start16.bin: $(ARCH)/start16.$(OBJEXT)
33        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib \
34          --oformat=elf32-i386 \
35        -o $(basename $@)-elf32.$(OBJEXT) $(basename $@).$(OBJEXT)
36        $(OBJCOPY) -O binary $(basename $@)-elf32.$(OBJEXT) $@
37
38$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin: $(ARCH)/start16.bin
39        $(INSTALL_DATA) $< $@
40
41$(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).$(OBJEXT): $(ARCH)/start.$(OBJEXT)
42        $(INSTALL_DATA) $< $@
43
44TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin \
45    $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).$(OBJEXT)
46
47all-local: $(OBJS) $(TMPINSTALL_FILES)
48
49EXTRA_DIST = start.S start16.S
50
51include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.