source: rtems/c/src/lib/libbsp/i386/pc386/start/Makefile.in @ 5fa14794

4.104.114.84.95
Last change on this file since 5fa14794 was 5fa14794, checked in by Joel Sherrill <joel.sherrill@…>, on 01/10/00 at 14:31:16

Patch rtems-rc-20000104-11.diff from Ralf Corsepius <corsepiu@…>
that converts the i386 directory to automake.

NOTE: Ralf is unable to build any i386 BSPs. This was true before and
after this patch and appears (to Joel) to be a tool issue unrelated since
others can build i386 BSPs.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ..
9subdir = start
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@
15
16PGMS = ${ARCH}/start.o ${ARCH}/start16.bin
17
18# C source names, if any, go here -- minus the .c
19C_PIECES =
20C_FILES = $(C_PIECES:%=%.c)
21C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
22
23H_FILES =
24
25# Assembly source names, if any, go here -- minus the .S
26S_PIECES = start16 start
27S_FILES = $(S_PIECES:%=%.S)
28S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
29
30SRCS = $(C_FILES) $(H_FILES) $(S_FILES)
31OBJS = $(C_O_FILES) $(S_O_FILES)
32
33include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
34include $(RTEMS_ROOT)/make/leaf.cfg
35
36INSTALL_CHANGE = @INSTALL_CHANGE@
37
38#
39# (OPTIONAL) Add local stuff here using +=
40#
41
42@RTEMS_GAS_CODE16_TRUE@CPPFLAGS += -DNEW_GAS
43CFLAGS +=
44
45LD_PATHS +=
46LD_LIBS +=
47LDFLAGS +=
48
49#
50# Add your list of files to delete here.  The config files
51#  already know how to delete some stuff, so you may want
52#  to just run 'make clean' first to see what gets missed.
53#  'make clobber' already includes 'make clean'
54#
55
56CLEAN_ADDITIONS +=
57CLOBBER_ADDITIONS +=
58
59all: ${ARCH} $(SRCS) $(OBJS) $(PGMS)
60        $(INSTALL_VARIANT) -m 755 ${PGMS} $(PROJECT_RELEASE)/lib
61
62# Install the program(s), appending _g or _p as appropriate.
63# for include files, just use $(INSTALL_CHANGE)
64
65LINKCMDS = $(srcdir)/../startup/linkcmds
66
67${ARCH}/start16.o: start16.S
68        ${COMPILE.S} -DHEADERADDR=$(HEADERADDR) -o $@ $<
69
70${ARCH}/start16.bin: ${ARCH}/start16.o
71        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib \
72          --oformat=elf32-i386 -o $(basename $@).obj $(basename $@).o
73        $(OBJCOPY) -O binary $(basename $@).obj $@
74
75Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
76        cd $(top_builddir) \
77         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.