source: rtems/c/src/exec/score/cpu/sh/Makefile.in @ 50cf94da

4.104.114.84.95
Last change on this file since 50cf94da was 50cf94da, checked in by Joel Sherrill <joel.sherrill@…>, on 03/20/98 at 17:16:31

SH port submitted from Ralf Corsepius <corsepiu@…>.

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