source: rtems/c/src/lib/libcpu/arm/mc9328mxl/Makefile.am @ 863b7f1b

4.104.114.84.95
Last change on this file since 863b7f1b was 863b7f1b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 26, 2004 at 3:47:07 AM

Reformat.

  • Property mode set to 100644
File size: 2.7 KB
Line 
1##
2## $Id$
3##
4
5CLEANFILES =
6EXTRA_DIST =
7EXTRA_PROGRAMS =
8noinst_DATA =
9
10include $(top_srcdir)/../../../automake/compile.am
11
12if mc9328mxl
13include_mc9328mxldir = $(includedir)/mc9328mxl
14include_libcpudir = $(includedir)/libcpu
15include_HEADERS = include/mc9328mxl.h
16
17## clock
18EXTRA_PROGRAMS += clock.rel
19CLEANFILES += clock.rel
20clock_rel_SOURCES = clock/clockdrv.c
21clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
22clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
23
24EXTRA_PROGRAMS += clock_g.rel
25CLEANFILES += clock_g.rel
26clock_g_rel_SOURCES = $(clock_rel_SOURCES)
27clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
28clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
29
30noinst_DATA += clock$(LIB_VARIANT).rel
31
32## timer
33EXTRA_PROGRAMS += timer.rel
34CLEANFILES += timer.rel
35timer_rel_SOURCES = timer/timer.c
36timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
37timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
38
39EXTRA_PROGRAMS += timer_g.rel
40CLEANFILES += timer_g.rel
41timer_g_rel_SOURCES = $(timer_rel_SOURCES)
42timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
43timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
44
45noinst_DATA += timer$(LIB_VARIANT).rel
46
47## interrupt
48include_HEADERS += irq/irq.h
49
50EXTRA_PROGRAMS += irq.rel
51CLEANFILES += irq.rel
52irq_rel_SOURCES = irq/irq.c irq/bsp_irq_init.c \
53    ../../../libbsp/arm/shared/irq/irq_init.c irq/bsp_irq_asm.S \
54    ../../../libbsp/arm/shared/irq/irq_asm.S irq/irq.h
55irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
56irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58EXTRA_PROGRAMS += irq_g.rel
59CLEANFILES += irq_g.rel
60irq_g_rel_SOURCES = $(irq_rel_SOURCES)
61irq_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
62irq_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
63
64noinst_DATA += irq$(LIB_VARIANT).rel
65endif
66
67## --
68all-local: $(PREINSTALL_FILES)
69
70PREINSTALL_DIRS =
71PREINSTALL_FILES =
72
73$(PROJECT_INCLUDE)/$(dirstamp):
74        @$(mkdir_p) $(PROJECT_INCLUDE)
75        @: > $(PROJECT_INCLUDE)/$(dirstamp)
76PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
77
78if mc9328mxl
79$(PROJECT_INCLUDE)/mc9328mxl/$(dirstamp):
80        @$(mkdir_p) $(PROJECT_INCLUDE)/mc9328mxl
81        @: > $(PROJECT_INCLUDE)/mc9328mxl/$(dirstamp)
82PREINSTALL_DIRS += $(PROJECT_INCLUDE)/mc9328mxl/$(dirstamp)
83
84$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
85        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
86        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
87PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
88
89$(PROJECT_INCLUDE)/mc9328mxl.h: include/mc9328mxl.h $(PROJECT_INCLUDE)/$(dirstamp)
90        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mc9328mxl.h
91PREINSTALL_FILES += $(PROJECT_INCLUDE)/mc9328mxl.h
92
93$(PROJECT_INCLUDE)/irq.h: irq/irq.h $(PROJECT_INCLUDE)/$(dirstamp)
94        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/irq.h
95PREINSTALL_FILES += $(PROJECT_INCLUDE)/irq.h
96endif
97
98CLEANFILES += $(PREINSTALL_FILES)
99DISTCLEANFILES = $(PREINSTALL_DIRS)
100
101include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.