source: rtems/c/src/lib/libbsp/m68k/sim68000/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: 3.9 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
14nodist_include_HEADERS += ../../shared/include/coverhd.h
15
16EXTRA_DIST = start/start.S
17start$(LIB_VARIANT).$(OBJEXT): start/start.S
18        $(CPPASCOMPILE) -DASM -o $@ -c $<
19
20project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
21
22dist_project_lib_DATA += startup/linkcmds
23
24EXTRA_PROGRAMS += startup.rel
25CLEANFILES += startup.rel
26startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
27    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
28    ../../m68k/shared/m68kpretaskinghook.c ../../shared/main.c \
29    ../../shared/sbrk.c ../../m68k/shared/setvec.c \
30    ../../shared/gnatinstallhandler.c ../../m68k/shared/bspspuriousinit.c \
31    ../../m68k/shared/m68000spurious.c startup/spurious_assistant.c
32startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
33startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
34
35EXTRA_PROGRAMS += startup_g.rel
36CLEANFILES += startup_g.rel
37startup_g_rel_SOURCES = $(startup_rel_SOURCES)
38startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
39startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
40
41noinst_DATA += startup$(LIB_VARIANT).rel
42
43EXTRA_PROGRAMS += clock.rel
44CLEANFILES += clock.rel
45clock_rel_SOURCES = clock/clockdrv.c
46clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
47clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49EXTRA_PROGRAMS += clock_g.rel
50CLEANFILES += clock_g.rel
51clock_g_rel_SOURCES = $(clock_rel_SOURCES)
52clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
53clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55noinst_DATA += clock$(LIB_VARIANT).rel
56
57EXTRA_PROGRAMS += console.rel
58CLEANFILES += console.rel
59console_rel_SOURCES = console/conscfg.c ../../shared/console.c
60
61console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
62console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
63
64EXTRA_PROGRAMS += console_g.rel
65CLEANFILES += console_g.rel
66console_g_rel_SOURCES = $(console_rel_SOURCES)
67console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
68console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
69
70noinst_DATA += console$(LIB_VARIANT).rel
71
72EXTRA_PROGRAMS += timer.rel
73CLEANFILES += timer.rel
74timer_rel_SOURCES = ../../shared/timerstub.c
75timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
76timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78EXTRA_PROGRAMS += timer_g.rel
79CLEANFILES += timer_g.rel
80timer_g_rel_SOURCES = $(timer_rel_SOURCES)
81timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
82timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84noinst_DATA += timer$(LIB_VARIANT).rel
85
86EXTRA_LIBRARIES = libbsp.a
87CLEANFILES += libbsp.a
88libbsp_a_SOURCES =
89libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
90    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
91libbsp_a_LIBADD += \
92    ../../../libcpu/@RTEMS_CPU@/shared/cache$(LIB_VARIANT).rel \
93    ../../../libcpu/@RTEMS_CPU@/shared/misc$(LIB_VARIANT).rel
94
95EXTRA_LIBRARIES += libbsp_g.a
96CLEANFILES += libbsp_g.a
97libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
98libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
99
100noinst_DATA += libbsp$(LIB_VARIANT).a
101
102all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
103
104PREINSTALL_DIRS =
105TMPINSTALL_FILES =
106
107$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
108        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
109PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
110
111$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
112        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
113TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
114
115$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
116        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
117TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
118
119CLEANFILES += $(PREINSTALL_FILES)
120DISTCLEANFILES = $(PREINSTALL_DIRS)
121CLEANFILES += $(TMPINSTALL_FILES)
122
123include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.