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

4.104.114.84.95
Last change on this file since ee733965 was 7cc7a74, checked in by Joel Sherrill <joel.sherrill@…>, on 02/15/99 at 16:46:54

Patch from Eric Valette <valette@…> to correct _exit
undefined problem.

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