source: rtems/c/src/lib/libbsp/m68k/mcf5235/Makefile.am @ cba119c9

4.104.114.84.95
Last change on this file since cba119c9 was 1612af0, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 17, 2005 at 2:06:05 PM

2005-06-17 Mike Bertosh <mbertosh@…>

  • .cvsignore, ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, clock/clock.c, console/console.c, include/bsp.h, include/coverhd.h, include/tm27.h, network/network.c, start/start.S, startup/bspclean.c, startup/bspstart.c, startup/init5235.c, startup/linkcmds, startup/linkcmdsflash, startup/linkcmdsram, timer/timer.c: New files.
  • Property mode set to 100644
File size: 3.6 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
20include_HEADERS += include/coverhd.h
21
22EXTRA_DIST = start/start.S
23start.$(OBJEXT): start/start.S
24        $(CPPASCOMPILE) -DASM -o $@ -c $<
25project_lib_DATA = start.$(OBJEXT)
26
27dist_project_lib_DATA += startup/linkcmds
28
29noinst_PROGRAMS += startup.rel
30startup_rel_SOURCES = startup/bspclean.c \
31    ../../shared/bsplibc.c ../../shared/bsppost.c \
32    ../../m68k/shared/m68kpretaskinghook.c \
33    startup/init5235.c startup/bspstart.c \
34    ../../shared/bootcard.c ../../shared/main.c \
35    ../../shared/sbrk.c ../../m68k/shared/setvec.c \
36    ../../shared/gnatinstallhandler.c
37startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
38startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
39
40noinst_PROGRAMS += clock.rel
41clock_rel_SOURCES = clock/clock.c
42clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
43clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
44
45noinst_PROGRAMS += console.rel
46console_rel_SOURCES = console/console.c
47console_rel_CPPFLAGS = $(AM_CPPFLAGS)
48console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49
50noinst_PROGRAMS += timer.rel
51timer_rel_SOURCES = timer/timer.c
52timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
53timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55if HAS_NETWORKING
56network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
57noinst_PROGRAMS += network.rel
58network_rel_SOURCES = network/network.c
59network_rel_CPPFLAGS = $(AM_CPPFLAGS) \
60    $(network_CPPFLAGS)
61network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62endif
63
64noinst_LIBRARIES = libbsp.a
65libbsp_a_SOURCES =
66libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel
67if HAS_NETWORKING
68libbsp_a_LIBADD += network.rel
69endif
70libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/cache.rel \
71    ../../../libcpu/@RTEMS_CPU@/shared/misc.rel
72
73all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
74
75PREINSTALL_DIRS =
76PREINSTALL_FILES =
77TMPINSTALL_FILES =
78
79$(PROJECT_INCLUDE)/$(dirstamp):
80        @$(mkdir_p) $(PROJECT_INCLUDE)
81        @: > $(PROJECT_INCLUDE)/$(dirstamp)
82PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
83
84$(PROJECT_LIB)/$(dirstamp):
85        @$(mkdir_p) $(PROJECT_LIB)
86        @: > $(PROJECT_LIB)/$(dirstamp)
87PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
88
89$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
90        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
91PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
92
93$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
94        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
95PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
96
97$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
98        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
99PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
100
101$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
102        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
103PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
104
105$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
106        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
107PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
108
109$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
110        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
111TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
112
113$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
114        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
115PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
116
117CLEANFILES = $(PREINSTALL_FILES)
118DISTCLEANFILES += $(PREINSTALL_DIRS)
119CLEANFILES += $(TMPINSTALL_FILES)
120
121include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.