source: rtems/c/src/exec/score/cpu/no_cpu/Makefile.in @ e4071cf

4.104.114.84.95
Last change on this file since e4071cf was e4071cf, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 17:16:48

Patch from Ralf Corsepius <corsepiu@…>:

This patch removes generation of targopts.h from leaf.cfg and generates
it in location at score/include/rtems/score instead.

To achieve this:

  • all rules in other Makefile.ins which have accessed targopts.h have been removed.
  • c/Makefile.in has been modified to generate the directories before doing anything else. I.e. to ensure the directories exist before any preinstall rule fires (This part is a bit kludgy, but it seems to work. Please check if the interaction with libhwapi still works).
  • Property mode set to 100644
File size: 1.9 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7VPATH = @srcdir@
8RTEMS_ROOT = @top_srcdir@
9PROJECT_ROOT = @PROJECT_ROOT@
10
11RELS=$(ARCH)/rtems-cpu.rel
12
13# C source names, if any, go here -- minus the .c
14#  Normally cpu_asm and rtems are assembly files
15C_PIECES=cpu cpu_asm rtems
16C_FILES=$(C_PIECES:%=%.c)
17C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
18
19H_FILES=$(srcdir)/cpu.h $(srcdir)/no_cpu.h $(srcdir)/no_cputypes.h
20
21# H_FILES that get installed externally
22EXTERNAL_H_FILES = $(srcdir)/asm.h
23
24# Assembly source names, if any, go here -- minus the .S
25#  Normally cpu_asm and rtems are assembly files
26S_PIECES=
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_ROOT)/make/custom/$(RTEMS_BSP).cfg
34include $(RTEMS_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
60$(ARCH)/rtems-cpu.rel: $(OBJS)
61        $(make-rel)
62
63# Install the program(s), appending _g or _p as appropriate.
64# for include files, just use $(INSTALL)
65install:  all
66
67# Real ports using the gnu tools will need to have bsp_specs!!!
68#            ${PROJECT_RELEASE}/lib/bsp_specs
69preinstall: $(ARCH)
70        $(INSTALL) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/rtems/score
71# we will share the basic cpu file
72        $(INSTALL) -m 444 ${EXTERNAL_H_FILES} $(PROJECT_INCLUDE)
73
74# Real ports using the gnu tools will need to have bsp_specs!!!
75#${PROJECT_RELEASE}/lib/bsp_specs: $(ARCH)/bsp_specs.tmp
76#       $(INSTALL) -m 444 $(ARCH)/bsp_specs.tmp $@
77
78# $(ARCH)/bsp_specs.tmp rule is in leaf.cfg
Note: See TracBrowser for help on using the repository browser.