source: rtems/c/src/lib/libbsp/i386/pc386/start/Makefile.am @ 0b34e440

4.104.114.84.95
Last change on this file since 0b34e440 was 0b34e440, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/21/02 at 02:24:04

2002-07-20 Ralf Corsepius <corsepiu@…>

  • start/Makefile.am: Eliminate PGM. Add bsplib_DATA = $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o. Add bsplib_DATA += $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1##
2## $Id$
3##
4
5S_FILES = start16.S start.S
6S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
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
20bsplib_DATA = $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
21bsplib_DATA += $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin
22
23$(ARCH)/start16.o: start16.S
24        $(COMPILE.S) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ $<
25
26$(ARCH)/start16.bin: $(ARCH)/start16.o
27        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib        --oformat=elf32-i386 -o $(basename $@).obj $(basename $@).o
28        $(OBJCOPY) -O binary $(basename $@).obj $@
29
30$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin: $(ARCH)/start16.bin
31        $(INSTALL_DATA) $< $@
32
33$(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o: $(ARCH)/start.o
34        $(INSTALL_DATA) $< $@
35
36TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin \
37    $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
38
39all-local: $(ARCH) $(OBJS) $(TMPINSTALL_FILES)
40
41EXTRA_DIST = start.S start16.S
42
43include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.