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

4.104.114.84.95
Last change on this file since a5417074 was a5417074, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 5, 2000 at 3:42:23 PM

2000-09-04 Ralf Corsepius <corsepiu@…>

  • 3c509/Makefile.am, clock/Makefile.am, console/Makefile.am, ne2000/Makefile.am, start/Makefile.am, startup/Makefile.am, timer/Makefile.am, wd8003/Makefile.am, wrapup/Makefile.am: Include compile.am
  • 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
9S_FILES = start16.S start.S
10S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.o)
11
12OBJS = $(S_O_FILES)
13
14include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
15include $(top_srcdir)/../../../../../../automake/compile.am
16include $(top_srcdir)/../../../../../../automake/lib.am
17
18#
19# (OPTIONAL) Add local stuff here using +=
20#
21
22if RTEMS_GAS_CODE16
23AM_CPPFLAGS += -DNEW_GAS
24endif
25
26LINKCMDS = $(top_srcdir)/startup/linkcmds
27
28$(ARCH)/start16.o: start16.S
29        $(COMPILE.S) $(AM_CPPFLAGS) -DHEADERADDR=$(HEADERADDR) -o $@ $<
30
31$(ARCH)/start16.bin: $(ARCH)/start16.o
32        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib        --oformat=elf32-i386 -o $(basename $@).obj $(basename $@).o
33        $(OBJCOPY) -O binary $(basename $@).obj $@
34
35$(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin: $(ARCH)/start16.bin
36        $(INSTALL_DATA) $< $@
37
38$(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o: $(ARCH)/start.o
39        $(INSTALL_DATA) $< $@
40
41TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/start16$(LIB_VARIANT).bin \
42    $(PROJECT_RELEASE)/lib/start$(LIB_VARIANT).o
43
44all-local: $(ARCH) $(OBJS) $(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.