source: rtems/c/src/lib/libbsp/i386/pc386/start/Makefile.am @ 69537ca9

4.104.114.84.95
Last change on this file since 69537ca9 was 69537ca9, checked in by Joel Sherrill <joel.sherrill@…>, on 01/12/00 at 16:38:56

Patch rtems-rc-20000104-16.diff from Ralf Corsepius <corsepiu@…>
that converts the libbsp/i386 subdirectory to full automake.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#
2#  $Id$
3#
4
5AUTOMAKE_OPTIONS = foreign 1.4
6
7PGMS = ${ARCH}/start.o ${ARCH}/start16.bin
8
9# Assembly source names, if any, go here -- minus the .S
10S_FILES = start16.S start.S
11S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
12
13include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
14include $(top_srcdir)/../../../../../../automake/lib.am
15
16#
17# (OPTIONAL) Add local stuff here using +=
18#
19
20if RTEMS_GAS_CODE16
21AM_CPPFLAGS += -DNEW_GAS
22endif
23
24LINKCMDS = $(top_srcdir)/startup/linkcmds
25
26${ARCH}/start16.o: start16.S
27        ${COMPILE.S} $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ $<
28
29${ARCH}/start16.bin: ${ARCH}/start16.o
30        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib \
31          --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
40TMPINSTALL_FILES += \
41$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin \
42$(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
43
44all-local: $(ARCH) $(TMPINSTALL_FILES)
45
46EXTRA_DIST = start.S start16.S
47
48include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.