source: rtems/c/src/lib/libbsp/i386/pc386/start/Makefile.am @ 50b3fcf

4.104.114.84.95
Last change on this file since 50b3fcf was 50b3fcf, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 9, 2003 at 2:13:13 PM

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

  • Makefile.am: Misc cleanups and fixes.
  • start/Makefile.am: Misc cleanups and fixes.
  • startup/Makefile.am: Misc cleanups and fixes.
  • wrapup/Makefile.am: Misc cleanups and fixes.
  • Property mode set to 100644
File size: 1.6 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
13include $(top_srcdir)/../../bspstart.am
14
15#
16# (OPTIONAL) Add local stuff here using +=
17#
18
19LINKCMDS = $(top_srcdir)/startup/linkcmds
20
21project_lib_DATA = $(ARCH)/start$(LIB_VARIANT).$(OBJEXT)
22project_lib_DATA += ${PROJECT_RELEASE}/lib/start16$(LIB_VARIANT).bin
23
24$(ARCH)/start16.$(OBJEXT): start16.S $(ARCH)/$(dirstamp)
25        $(COMPILE.S) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ $<
26
27$(ARCH)/start16.bin: $(ARCH)/start16.$(OBJEXT) $(ARCH)/$(dirstamp)
28        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib \
29          --oformat=elf32-i386 \
30        -o $(basename $@)-elf32.$(OBJEXT) $(basename $@).$(OBJEXT)
31        $(OBJCOPY) -O binary $(basename $@)-elf32.$(OBJEXT) $@
32
33all-local: $(TMPINSTALL_FILES)
34
35EXTRA_DIST = start.S start16.S
36
37${PROJECT_RELEASE}/lib/start$(LIB_VARIANT).$(OBJEXT): $(ARCH)/start$(LIB_VARIANT).$(OBJEXT) ${PROJECT_RELEASE}/lib/$(dirstamp)
38        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/start$(LIB_VARIANT).$(OBJEXT)
39TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/start$(LIB_VARIANT).$(OBJEXT)
40
41${PROJECT_RELEASE}/lib/start16$(LIB_VARIANT).bin: ${PROJECT_RELEASE}/lib/start16$(LIB_VARIANT).bin ${PROJECT_RELEASE}/lib/$(dirstamp)
42        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/start16$(LIB_VARIANT).bin
43TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/start16$(LIB_VARIANT).bin
44
45include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.