source: rtems/c/src/lib/libbsp/m68k/mcf5206elite/Makefile.am @ 4cbf22a

4.104.114.84.95
Last change on this file since 4cbf22a was 4cbf22a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 2, 2005 at 9:06:25 PM

2005-01-02 Ralf Corsepius <ralf.corsepius@…>

  • Makefile.am: Remove build-variant support.
  • 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
10dist_project_lib_DATA = bsp_specs
11
12include_HEADERS = include/bsp.h
13include_HEADERS += include/tm27.h
14
15nodist_include_HEADERS = include/bspopts.h
16DISTCLEANFILES = include/bspopts.h
17
18noinst_PROGRAMS =
19
20SUBDIRS = . tools
21
22include_HEADERS += include/coverhd.h
23include_HEADERS += include/i2c.h
24include_HEADERS += include/i2cdrv.h
25include_HEADERS += include/ds1307.h
26include_HEADERS += include/nvram.h
27nodist_include_HEADERS += ../../shared/tod.h
28
29EXTRA_DIST = times
30
31EXTRA_DIST += start/start.S
32start.$(OBJEXT): start/start.S
33        $(CPPASCOMPILE) -DASM -o $@ -c $<
34
35project_lib_DATA = start.$(OBJEXT)
36
37dist_project_lib_DATA += startup/linkcmds startup/gdbinit \
38    startup/linkcmds.flash
39
40noinst_PROGRAMS += startup.rel
41startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
42    ../../shared/bsppost.c ../../m68k/shared/m68kpretaskinghook.c \
43    startup/bspstart.c startup/init5206e.c ../../shared/bootcard.c \
44    ../../shared/main.c ../../shared/sbrk.c ../../m68k/shared/setvec.c \
45    ../../shared/gnatinstallhandler.c
46startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
47startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49noinst_PROGRAMS += console.rel
50console_rel_SOURCES = console/console.c
51console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
52console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54noinst_PROGRAMS += i2c.rel
55i2c_rel_SOURCES = i2c/i2c.c i2c/i2cdrv.c
56i2c_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
57i2c_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
58
59noinst_PROGRAMS += tod.rel
60tod_rel_SOURCES = tod/ds1307.c tod/todcfg.c ../../shared/tod.c
61tod_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
62tod_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
63
64noinst_PROGRAMS += nvram.rel
65nvram_rel_SOURCES = nvram/nvram.c
66nvram_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
67nvram_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
68
69noinst_LIBRARIES = libbsp.a
70libbsp_a_SOURCES =
71libbsp_a_LIBADD = startup.rel console.rel i2c.rel tod.rel nvram.rel
72libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
73    ../../../libcpu/@RTEMS_CPU@/shared/misc.rel \
74    ../../../libcpu/@RTEMS_CPU@/mcf5206/clock.rel \
75    ../../../libcpu/@RTEMS_CPU@/mcf5206/mcfuart.rel \
76    ../../../libcpu/@RTEMS_CPU@/mcf5206/timer.rel \
77    ../../../libcpu/@RTEMS_CPU@/mcf5206/mbus.rel
78
79all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
80
81PREINSTALL_DIRS =
82PREINSTALL_FILES =
83TMPINSTALL_FILES =
84
85$(PROJECT_INCLUDE)/$(dirstamp):
86        @$(mkdir_p) $(PROJECT_INCLUDE)
87        @: > $(PROJECT_INCLUDE)/$(dirstamp)
88PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
89
90$(PROJECT_LIB)/$(dirstamp):
91        @$(mkdir_p) $(PROJECT_LIB)
92        @: > $(PROJECT_LIB)/$(dirstamp)
93PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
94
95$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
96        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
97PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
98
99$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
101PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
102
103$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
104        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
105PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
106
107$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
108        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
109PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
110
111$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
112        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
113PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
114
115$(PROJECT_INCLUDE)/i2c.h: include/i2c.h $(PROJECT_INCLUDE)/$(dirstamp)
116        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/i2c.h
117PREINSTALL_FILES += $(PROJECT_INCLUDE)/i2c.h
118
119$(PROJECT_INCLUDE)/i2cdrv.h: include/i2cdrv.h $(PROJECT_INCLUDE)/$(dirstamp)
120        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/i2cdrv.h
121PREINSTALL_FILES += $(PROJECT_INCLUDE)/i2cdrv.h
122
123$(PROJECT_INCLUDE)/ds1307.h: include/ds1307.h $(PROJECT_INCLUDE)/$(dirstamp)
124        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ds1307.h
125PREINSTALL_FILES += $(PROJECT_INCLUDE)/ds1307.h
126
127$(PROJECT_INCLUDE)/nvram.h: include/nvram.h $(PROJECT_INCLUDE)/$(dirstamp)
128        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/nvram.h
129PREINSTALL_FILES += $(PROJECT_INCLUDE)/nvram.h
130
131$(PROJECT_INCLUDE)/tod.h: ../../shared/tod.h $(PROJECT_INCLUDE)/$(dirstamp)
132        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tod.h
133PREINSTALL_FILES += $(PROJECT_INCLUDE)/tod.h
134
135$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
136        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
137TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
138
139$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
140        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
141PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
142
143$(PROJECT_LIB)/gdbinit: startup/gdbinit $(PROJECT_LIB)/$(dirstamp)
144        $(INSTALL_DATA) $< $(PROJECT_LIB)/gdbinit
145PREINSTALL_FILES += $(PROJECT_LIB)/gdbinit
146
147$(PROJECT_LIB)/linkcmds.flash: startup/linkcmds.flash $(PROJECT_LIB)/$(dirstamp)
148        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.flash
149PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.flash
150
151CLEANFILES = $(PREINSTALL_FILES)
152DISTCLEANFILES += $(PREINSTALL_DIRS)
153CLEANFILES += $(TMPINSTALL_FILES)
154
155include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.