source: rtems/c/src/exec/score/cpu/a29k/Makefile.in @ 254b4450

4.104.114.84.95
Last change on this file since 254b4450 was 254b4450, checked in by Joel Sherrill <joel.sherrill@…>, on 04/01/97 at 23:07:52

This set of changes is the build of what was required to convert to
GNU autoconf. This is the first large step in allowing an RTEMS
user to perform a one-tree build (per crossgcc FAQ) including RTEMS
in the build process. With this change RTEMS is configured in
built in the same style as the GNU tools, yet retains the basic
structure of its traditional Makefiles (ala Tony Bennett).
Jiri Gaisler (jgais@…) deserves (and received)
a big thank you for doing this.

There are still issues to be resolved but as of this commit, all target
which can be built on a linux host have been using a modified version
of the source Jiri submitted. This source was merged and most targets
built in the tree before this commit.

There are some issues which remain to be resolved but they are primarily
related to host OS dependencies, script issues, the use of gawk
for hack_specs, and the dependence on gcc snapshots. These will
be resolved.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8VPATH=@srcdir@
9
10RELS=$(ARCH)/rtems-cpu.rel
11
12# C source names, if any, go here -- minus the .c
13#  Normally cpu_asm and rtems are assembly files
14C_PIECES=cpu rtems
15C_FILES=$(C_PIECES:%=%.c)
16C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
17
18H_FILES=$(srcdir)/cpu.h $(srcdir)/a29ktypes.h
19
20# H_FILES that get installed externally
21# a29k.h is handled separately
22EXTERNAL_H_FILES = $(srcdir)/asm.h $(srcdir)/amd.ah $(srcdir)/pswmacro.ah $(srcdir)/register.ah
23
24# Assembly source names, if any, go here -- minus the .s
25#  Normally cpu_asm and rtems are assembly files
26S_PIECES=cpu_asm sig
27S_FILES=$(S_PIECES:%=%.s)
28S_O_FILES=$(S_FILES:%.s=${ARCH}/%.o)
29
30SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES) $(EXTERNAL_H_FILES)
31OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
32
33include $(RTEMS_CUSTOM)
34include $(PROJECT_ROOT)/make/leaf.cfg
35
36#
37# (OPTIONAL) Add local stuff here using +=
38#
39
40DEFINES  +=
41CPPFLAGS +=
42CFLAGS   += $(CFLAGS_OS_V)
43
44LD_PATHS  +=
45LD_LIBS   +=
46LDFLAGS   +=
47
48#
49# Add your list of files to delete here.  The config files
50#  already know how to delete some stuff, so you may want
51#  to just run 'make clean' first to see what gets missed.
52#  'make clobber' already includes 'make clean'
53#
54
55CLEAN_ADDITIONS +=
56CLOBBER_ADDITIONS +=
57
58all:    ${ARCH} $(SRCS) preinstall $(OBJS) $(RELS)
59        $(INSTALL_VARIANT) -m 444 $(RELS) ${PROJECT_RELEASE}/lib
60
61$(ARCH)/rtems-cpu.rel: $(OBJS)
62        $(make-rel)
63
64# Install the program(s), appending _g or _p as appropriate.
65# for include files, just use $(INSTALL)
66
67preinstall: ${PROJECT_RELEASE}/include/rtems/score/a29k.h \
68            ${PROJECT_RELEASE}/include/rtems/score/targopts.h \
69            ${PROJECT_RELEASE}/lib/bsp_specs
70        $(INSTALL) -m 444 ${H_FILES} ${PROJECT_RELEASE}/include/rtems/score
71# we will share the basic cpu file
72        $(INSTALL) -m 444 ${EXTERNAL_H_FILES} ${PROJECT_RELEASE}/include
73
74${PROJECT_RELEASE}/include/rtems/score/a29k.h: a29k.h
75         $(SED) -e 's?REPLACE_THIS_WITH_THE_CPU_MODEL?$(RTEMS_CPU_MODEL)?' \
76                -e 's?REPLACE_THIS_WITH_THE_BSP?$(RTEMS_BSP)?' \
77      < $< >$(ARCH)/a29k.h.tmp
78        $(INSTALL) -m 444 $(ARCH)/a29k.h.tmp $@
79
80${PROJECT_RELEASE}/include/rtems/score/targopts.h: $(ARCH)/targopts.h-tmp
81        $(INSTALL) -m 444 $(ARCH)/targopts.h-tmp $@
82
83# $(ARCH)/targopts.h-tmp rule is in leaf.cfg
84
85${PROJECT_RELEASE}/lib/bsp_specs: $(ARCH)/bsp_specs.tmp
86        $(INSTALL) -m 444 $(ARCH)/bsp_specs.tmp $@
87
88# $(ARCH)/bsp_specs.tmp rule is in leaf.cfg
Note: See TracBrowser for help on using the repository browser.