source: rtems/c/src/exec/score/cpu/sh/Makefile.in @ 4d11a92f

4.104.114.84.95
Last change on this file since 4d11a92f was 4d11a92f, checked in by Joel Sherrill <joel.sherrill@…>, on 08/05/98 at 15:11:33

Redid Makefiles to properly do a preinstall. There was remnants of the
old way of setting th cpu family and model string names.

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