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