source: rtems/c/src/lib/libbsp/i386/pc386/start/Makefile.in @ 196094eb

4.104.114.84.95
Last change on this file since 196094eb was 196094eb, checked in by Joel Sherrill <joel.sherrill@…>, on 04/19/99 at 13:19:14

Patch from Ralf Corsepius <corsepiu@…>:

This one is an enhancement to acpolish.

It replaces some Makefile variables by others variable in Makefile.ins
(tries to use unique name for some variables). It therefore eases
parsing Makefile.ins for further automatic Makefile.in conversions in
future.

To apply:

cd <rtems-source-tree>
sh <path-to>/rtems-rc-19990407-8.sh
./autogen

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