source: rtems/c/src/lib/libbsp/m68k/ods68302/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: 5.2 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 =
13EXTRA_DIST =
14
15include_HEADERS += include/bare.h
16include_HEADERS += include/crc.h
17include_HEADERS += include/debugport.h
18include_HEADERS += include/m68302scc.h
19include_HEADERS += include/coverhd.h
20
21# FIXME: Better merge both files into one and use #ifdef GDB_MONITOR_ACTIVE
22if ODS68302_DEBUG
23EXTRA_DIST += start/debugreset.S
24start$(LIB_VARIANT).$(OBJEXT): start/debugreset.S
25        $(CPPASCOMPILE) -DASM -o $@ -c $<
26else
27EXTRA_DIST += start/reset.S
28start$(LIB_VARIANT).$(OBJEXT): start/reset.S
29        $(CPPASCOMPILE) -DASM -o $@ -c $<
30endif
31
32project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
33
34dist_project_lib_DATA += startup/linkcmds startup/rom startup/debugger
35
36EXTRA_PROGRAMS += startup.rel
37CLEANFILES += startup.rel
38startup_rel_SOURCES = startup/cpuboot.c startup/crc.c startup/debugport.c \
39    startup/gdb-hooks.c ../../shared/bootcard.c ../../shared/main.c \
40    startup/m68302scc.c startup/m68k-stub.c \
41    ../../m68k/shared/m68kpretaskinghook.c startup/memcheck.c \
42    startup/trace.c ../../shared/gnatinstallhandler.c ../../shared/bsplibc.c \
43    ../../shared/bsppost.c startup/bspstart.c startup/bspclean.c \
44    ../../shared/sbrk.c ../../m68k/shared/setvec.c
45startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
46startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
47
48EXTRA_PROGRAMS += startup_g.rel
49CLEANFILES += startup_g.rel
50startup_g_rel_SOURCES = $(startup_rel_SOURCES)
51startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
52startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54noinst_DATA += startup$(LIB_VARIANT).rel
55
56EXTRA_PROGRAMS += clock.rel
57CLEANFILES += clock.rel
58clock_rel_SOURCES = clock/ckinit.c
59clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
60clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
61
62EXTRA_PROGRAMS += clock_g.rel
63CLEANFILES += clock_g.rel
64clock_g_rel_SOURCES = $(clock_rel_SOURCES)
65clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
66clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
67
68noinst_DATA += clock$(LIB_VARIANT).rel
69
70EXTRA_PROGRAMS += console.rel
71CLEANFILES += console.rel
72console_rel_SOURCES = console/console.c
73console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
74console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
75
76EXTRA_PROGRAMS += console_g.rel
77CLEANFILES += console_g.rel
78console_g_rel_SOURCES = $(console_rel_SOURCES)
79console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
80console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
81
82noinst_DATA += console$(LIB_VARIANT).rel
83
84EXTRA_PROGRAMS += timer.rel
85CLEANFILES += timer.rel
86timer_rel_SOURCES = timer/timer.c timer/timerisr.S
87timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
88timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
89
90EXTRA_PROGRAMS += timer_g.rel
91CLEANFILES += timer_g.rel
92timer_g_rel_SOURCES = $(timer_rel_SOURCES)
93timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
94timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
95
96noinst_DATA += timer$(LIB_VARIANT).rel
97
98EXTRA_LIBRARIES = libbsp.a
99CLEANFILES += libbsp.a
100libbsp_a_SOURCES =
101libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
102    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
103libbsp_a_LIBADD += \
104    ../../../libcpu/@RTEMS_CPU@/shared/cache$(LIB_VARIANT).rel \
105    ../../../libcpu/@RTEMS_CPU@/shared/misc$(LIB_VARIANT).rel
106
107EXTRA_LIBRARIES += libbsp_g.a
108CLEANFILES += libbsp_g.a
109libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
110libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
111
112noinst_DATA += libbsp$(LIB_VARIANT).a
113
114all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
115
116PREINSTALL_DIRS =
117TMPINSTALL_FILES =
118
119$(PROJECT_INCLUDE)/bare.h: include/bare.h $(PROJECT_INCLUDE)/$(dirstamp)
120        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bare.h
121PREINSTALL_FILES += $(PROJECT_INCLUDE)/bare.h
122
123$(PROJECT_INCLUDE)/crc.h: include/crc.h $(PROJECT_INCLUDE)/$(dirstamp)
124        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/crc.h
125PREINSTALL_FILES += $(PROJECT_INCLUDE)/crc.h
126
127$(PROJECT_INCLUDE)/debugport.h: include/debugport.h $(PROJECT_INCLUDE)/$(dirstamp)
128        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/debugport.h
129PREINSTALL_FILES += $(PROJECT_INCLUDE)/debugport.h
130
131$(PROJECT_INCLUDE)/m68302scc.h: include/m68302scc.h $(PROJECT_INCLUDE)/$(dirstamp)
132        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/m68302scc.h
133PREINSTALL_FILES += $(PROJECT_INCLUDE)/m68302scc.h
134
135$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
136        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
137PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
138
139$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
140        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
141TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
142
143$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
144        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
145TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
146
147$(PROJECT_LIB)/rom: startup/rom $(PROJECT_LIB)/$(dirstamp)
148        $(INSTALL_DATA) $< $(PROJECT_LIB)/rom
149TMPINSTALL_FILES += $(PROJECT_LIB)/rom
150
151$(PROJECT_LIB)/debugger: startup/debugger $(PROJECT_LIB)/$(dirstamp)
152        $(INSTALL_DATA) $< $(PROJECT_LIB)/debugger
153TMPINSTALL_FILES += $(PROJECT_LIB)/debugger
154
155CLEANFILES += $(PREINSTALL_FILES)
156DISTCLEANFILES = $(PREINSTALL_DIRS)
157CLEANFILES += $(TMPINSTALL_FILES)
158
159include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.