source: rtems/c/src/lib/libbsp/m68k/uC5282/Makefile.am @ d88c378

4.104.114.84.95
Last change on this file since d88c378 was d88c378, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 4, 2005 at 4:15:06 PM

Reformat.

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