source: rtems/c/src/lib/libbsp/sh/gensh2/startup/Makefile.in @ 4a238002

4.104.114.84.95
Last change on this file since 4a238002 was 4a238002, checked in by Joel Sherrill <joel.sherrill@…>, on 11/18/99 at 21:22:58

Patch from "John M. Mills" <jmills@…> with subsequent cleanup from
Ralf Corsepius <corsepiu@…> that adds initial Hitachi SH-2
support to RTEMS. Ralf's comments are:

Changes:
------

  1. SH-Port:
  • Many files renamed.
  • CONSOLE_DEVNAME and MHZ defines removed from libcpu.
  • console.c moved to libbsp/sh/shared, build in libbsp/sh/<BSP>/console applying VPATH.
  • CONSOLE_DEVNAME made BSP-specific, replacement is defined in bsp.h
  • MHZ define replaced with HZ (extendent resolution) in custom/*.cfg
  • -DHZ=HZ used in bspstart.c, only
  • Makefile variable HZ used in bsp-dependent directories only.
  1. SH1-Port
  • clock-driver rewritten to provide better resolution for odd CPU frequencies. This driver is only partially tested on hardware, ie. sightly experimental, but I don't expect severe problems with it.
  • Polling SCI-driver added. This driver is experimental and completly untested yet. Therefore it is not yet used for the console (/dev/console is still pointing to /dev/null, cf. gensh1/bsp.h).
  • minor changes to the timer driver
  • SH1 specific delay()/CPU_delay() now is implemented as a function
  1. SH2-Port
  • Merged
  • IMO, the code is still in its infancy. Therefore I have interspersed comments (FIXME) it for items which I think John should look after.
  • sci and console drivers partially rewritten and extended (John, I hope you don't mind).
  • Copyright notices are not yet adapted
  • Property mode set to 100644
File size: 1.7 KB
Line 
1##
2## $Id$
3##
4
5@SET_MAKE@
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8top_builddir = ../../..
9subdir = sh/gensh2/startup
10
11RTEMS_ROOT = @RTEMS_ROOT@
12PROJECT_ROOT = @PROJECT_ROOT@
13
14VPATH = @srcdir@:@srcdir@/../../shared:@srcdir@/../../../shared
15
16PGM = ${ARCH}/startup.rel
17
18# C source names, if any, go here -- minus the .c
19C_PIECES = hw_init bsplibc bsppost bspstart bspclean sbrk bootcard main \
20    gnatinstallhandler
21C_FILES = $(C_PIECES:%=%.c)
22C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
23
24H_FILES =
25
26# Assembly source names, if any, go here -- minus the .s
27S_PIECES =
28S_FILES = $(S_PIECES:%=%.S)
29S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
30
31SRCS = linkcmds $(C_FILES) $(H_FILES) $(S_FILES)
32OBJS = $(C_O_FILES) $(S_O_FILES)
33
34include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
35include $(RTEMS_ROOT)/make/leaf.cfg
36
37INSTALL_CHANGE = @INSTALL_CHANGE@
38mkinstalldirs = $(SHELL) $(top_srcdir)/@RTEMS_TOPdir@/mkinstalldirs
39
40INSTALLDIRS = $(PROJECT_RELEASE)/lib
41
42$(INSTALLDIRS):
43        @$(mkinstalldirs) $(INSTALLDIRS)
44
45#
46# (OPTIONAL) Add local stuff here using +=
47#
48
49DEFINES +=
50CPPFLAGS += $(BSP_CPPFLAGS)
51CFLAGS +=
52
53LD_PATHS +=
54LD_LIBS +=
55LDFLAGS +=
56
57#
58# Add your list of files to delete here.  The config files
59#  already know how to delete some stuff, so you may want
60#  to just run 'make clean' first to see what gets missed.
61#  'make clobber' already includes 'make clean'
62#
63
64CLEAN_ADDITIONS +=
65CLOBBER_ADDITIONS +=
66
67${PGM}: ${SRCS} ${OBJS}
68        $(make-rel)
69
70all: ${ARCH} $(SRCS) $(PGM)
71        $(INSTALL_CHANGE) -m 644 $(srcdir)/linkcmds $(PROJECT_RELEASE)/lib
72
73# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
74
75Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
76        cd $(top_builddir) \
77         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.