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

4.104.114.84.9
Last change on this file since b2e180b7 was b2e180b7, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 14, 1998 at 10:15:57 PM

Renamed ASFLAGS to ASMFLAGS for consistency per suggestion from Ralf Corsepius <corsepiu@…>.

  • Property mode set to 100644
File size: 1.7 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)
37DEFINES  += -DNEW_GAS
38endif
39CPPFLAGS +=
40CFLAGS   +=
41
42LD_PATHS  +=
43LD_LIBS   +=
44LDFLAGS   +=
45
46#
47# Add your list of files to delete here.  The config files
48#  already know how to delete some stuff, so you may want
49#  to just run 'make clean' first to see what gets missed.
50#  'make clobber' already includes 'make clean'
51#
52
53CLEAN_ADDITIONS +=
54CLOBBER_ADDITIONS +=
55
56all:    ${ARCH} $(SRCS) $(OBJS) $(PGMS)
57        $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/lib
58
59# Install the program(s), appending _g or _p as appropriate.
60# for include files, just use $(INSTALL)
61
62LINKCMDS=$(srcdir)/../startup/linkcmds
63
64${ARCH}/start16.o: start16.s
65        sed -e 's/\/\/.*$$//' < $< | $(CPP) $(ASMFLAGS) -I. -I$(srcdir) \
66          -DASM -DHEADERADDR=$(HEADERADDR) - > $*.i
67        $(AS) $(ASMFLAGS) -o $@ $*.i
68
69${ARCH}/start16.bin: ${ARCH}/start16.o
70        $(LD) -N -T $(LINKCMDS) -Ttext $(START16ADDR) -e start16 -nostdlib \
71          --oformat=elf32-i386 -o $(basename $@).obj $(basename $@).o
72        $(OBJCOPY) -O binary $(basename $@).obj $@
Note: See TracBrowser for help on using the repository browser.