source: trunk/libs/newlib/src/libgloss/aarch64/cpu-init/Makefile.in @ 487

Last change on this file since 487 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 3.1 KB
Line 
1#  Copyright (c) 2012 ARM Ltd.  All rights reserved.
2#
3#  Redistribution and use in source and binary forms, with or without
4#  modification, are permitted provided that the following conditions
5#  are met:
6#  1. Redistributions of source code must retain the above copyright
7#     notice, this list of conditions and the following disclaimer.
8#  2. Redistributions in binary form must reproduce the above copyright
9#     notice, this list of conditions and the following disclaimer in the
10#     documentation and/or other materials provided with the distribution.
11#  3. The name of the company may not be used to endorse or promote
12#     products derived from this software without specific prior written
13#     permission.
14#
15#  THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED
16#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
17#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18#  IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
20#  TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21#  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
22#  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23#  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24#  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26DESTDIR =
27VPATH = @srcdir@ @srcdir@/.. @srcdir@/../..
28srcdir = @srcdir@
29objdir = .
30srcroot = $(srcdir)/../../..
31objroot = $(objdir)/../../..
32
33prefix = @prefix@
34exec_prefix = @exec_prefix@
35
36host_alias = @host_alias@
37target_alias = @target_alias@
38
39bindir = @bindir@
40libdir = @libdir@
41tooldir = $(exec_prefix)/$(target_alias)
42
43INSTALL = @INSTALL@
44INSTALL_PROGRAM = @INSTALL_PROGRAM@
45INSTALL_DATA = @INSTALL_DATA@
46
47# Multilib support variables.
48# TOP is used instead of MULTI{BUILD,SRC}TOP.
49MULTISRCTOP =
50MULTIBUILDTOP =
51MULTIDIRS =
52MULTISUBDIR =
53MULTIDO = true
54MULTICLEAN = true
55
56SHELL = /bin/sh
57
58CC = @CC@
59
60AS = @AS@
61AR = @AR@
62LD = @LD@
63RANLIB = @RANLIB@
64
65CPU_INIT_OBJS = rdimon-aem-el3.o
66CPU_INIT_INSTALL = install-cpu-init
67
68CFLAGS          = -g
69
70# Host specific makefile fragment comes in here.
71@host_makefile_frag@
72
73.PHONY: all
74all: ${CPU_INIT_OBJS}
75
76#
77# here's where we build the test programs for each target
78#
79.PHONY: test
80test:
81
82# Static pattern rule for assembling cpu init files to object files.
83${CPU_INIT_OBJS}: %.o: %.S
84        $(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS) $(INCLUDES) -DARM_RDI_MONITOR -o $@ -c $<
85
86clean mostlyclean:
87        rm -f a.out core *.i *.o *-test *.srec *.dis *.x
88
89distclean maintainer-clean realclean: clean
90        rm -f Makefile *~
91
92.PHONY: install info install-info clean-info
93install: ${CPU_INIT_INSTALL}
94
95install-cpu-init:
96        test -d $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/cpu-init || mkdir $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/cpu-init
97        set -e; for x in ${CPU_INIT_OBJS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/cpu-init/$$x; done
98
99doc:
100info:
101install-info:
102clean-info:
103
104Makefile: Makefile.in config.status @host_makefile_frag_path@
105        $(SHELL) config.status
106
107config.status: configure
108        $(SHELL) config.status --recheck
Note: See TracBrowser for help on using the repository browser.