source: rtems/c/src/lib/libbsp/sh/simsh4/Makefile.am @ c24d7c84

4.104.114.84.9
Last change on this file since c24d7c84 was c24d7c84, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 12, 2004 at 9:08:05 AM

2004-02-12 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Use CPPASCOMPILE instead of CCASCOMPILE.
  • Property mode set to 100644
File size: 4.5 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10EXTRA_PROGRAMS =
11CLEANFILES =
12noinst_DATA =
13
14SUBDIRS = . tools
15
16# FIXME: This directory is missing
17# ramdisk
18
19include_HEADERS += include/syscall.h
20include_HEADERS += include/ramdisk.h
21include_HEADERS += include/coverhd.h
22
23EXTRA_DIST = start/start.S
24start$(LIB_VARIANT).$(OBJEXT): start/start.S
25        $(CPPASCOMPILE) -DASM -o $@ -c $<
26project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
27
28dist_project_lib_DATA += startup/linkcmds startup/linkcmds-le \
29    startup/linkcmds-le.coff
30
31EXTRA_PROGRAMS += startup.rel
32CLEANFILES += startup.rel
33startup_rel_SOURCES = startup/hw_init.c ../../shared/bsplibc.c \
34    ../../shared/bsppost.c startup/bspstart.c ../../shared/bspclean.c \
35    ../../shared/sbrk.c ../../shared/bootcard.c ../../shared/main.c \
36    ../../shared/gnatinstallhandler.c
37startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
38startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
39
40EXTRA_PROGRAMS += startup_g.rel
41CLEANFILES += startup_g.rel
42startup_g_rel_SOURCES = $(startup_rel_SOURCES)
43startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
44startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
45
46noinst_DATA += startup$(LIB_VARIANT).rel
47
48EXTRA_PROGRAMS += console.rel
49CLEANFILES += console.rel
50console_rel_SOURCES = console/console.c
51console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
52console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54EXTRA_PROGRAMS += console_g.rel
55CLEANFILES += console_g.rel
56console_g_rel_SOURCES = $(console_rel_SOURCES)
57console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
58console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60noinst_DATA += console$(LIB_VARIANT).rel
61
62EXTRA_PROGRAMS += clock.rel
63CLEANFILES += clock.rel
64clock_rel_SOURCES = clock/ckinit.c
65clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
66clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
67
68EXTRA_PROGRAMS += clock_g.rel
69CLEANFILES += clock_g.rel
70clock_g_rel_SOURCES = $(clock_rel_SOURCES)
71clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
72clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
73
74noinst_DATA += clock$(LIB_VARIANT).rel
75
76EXTRA_PROGRAMS += timer.rel
77CLEANFILES += timer.rel
78timer_rel_SOURCES = timer/timer.c
79timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
80timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
81
82EXTRA_PROGRAMS += timer_g.rel
83CLEANFILES += timer_g.rel
84timer_g_rel_SOURCES = $(timer_rel_SOURCES)
85timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
86timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
87
88noinst_DATA += timer$(LIB_VARIANT).rel
89
90EXTRA_LIBRARIES = libbsp.a
91CLEANFILES += libbsp.a
92libbsp_a_SOURCES =
93libbsp_a_LIBADD = startup$(LIB_VARIANT).rel console$(LIB_VARIANT).rel \
94    clock$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
95# FIXME: This is missing.
96# libbsp_a_LIBADD += ramdisk$(LIB_VARIANT).rel
97libbsp_a_LIBADD += \
98    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/score$(LIB_VARIANT).rel
99
100EXTRA_LIBRARIES += libbsp_g.a
101CLEANFILES += libbsp_g.a
102libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
103libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
104
105noinst_DATA += libbsp$(LIB_VARIANT).a
106
107all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
108
109PREINSTALL_DIRS =
110TMPINSTALL_FILES =
111
112$(PROJECT_INCLUDE)/syscall.h: include/syscall.h $(PROJECT_INCLUDE)/$(dirstamp)
113        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/syscall.h
114PREINSTALL_FILES += $(PROJECT_INCLUDE)/syscall.h
115
116$(PROJECT_INCLUDE)/ramdisk.h: include/ramdisk.h $(PROJECT_INCLUDE)/$(dirstamp)
117        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ramdisk.h
118PREINSTALL_FILES += $(PROJECT_INCLUDE)/ramdisk.h
119
120$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
121        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
122PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
123
124$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
125        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
126TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
127
128$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
129        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
130TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
131
132$(PROJECT_LIB)/linkcmds-le: startup/linkcmds-le $(PROJECT_LIB)/$(dirstamp)
133        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds-le
134TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds-le
135
136$(PROJECT_LIB)/linkcmds-le.coff: startup/linkcmds-le.coff $(PROJECT_LIB)/$(dirstamp)
137        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds-le.coff
138TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds-le.coff
139
140CLEANFILES += $(PREINSTALL_FILES)
141DISTCLEANFILES = $(PREINSTALL_DIRS)
142CLEANFILES += $(TMPINSTALL_FILES)
143
144include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.