[444] | 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 | |
---|
| 26 | DESTDIR = |
---|
| 27 | VPATH = @srcdir@ @srcdir@/.. @srcdir@/../.. |
---|
| 28 | srcdir = @srcdir@ |
---|
| 29 | objdir = . |
---|
| 30 | srcroot = $(srcdir)/../../.. |
---|
| 31 | objroot = $(objdir)/../../.. |
---|
| 32 | |
---|
| 33 | prefix = @prefix@ |
---|
| 34 | exec_prefix = @exec_prefix@ |
---|
| 35 | |
---|
| 36 | host_alias = @host_alias@ |
---|
| 37 | target_alias = @target_alias@ |
---|
| 38 | |
---|
| 39 | bindir = @bindir@ |
---|
| 40 | libdir = @libdir@ |
---|
| 41 | tooldir = $(exec_prefix)/$(target_alias) |
---|
| 42 | |
---|
| 43 | INSTALL = @INSTALL@ |
---|
| 44 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
---|
| 45 | INSTALL_DATA = @INSTALL_DATA@ |
---|
| 46 | |
---|
| 47 | # Multilib support variables. |
---|
| 48 | # TOP is used instead of MULTI{BUILD,SRC}TOP. |
---|
| 49 | MULTISRCTOP = |
---|
| 50 | MULTIBUILDTOP = |
---|
| 51 | MULTIDIRS = |
---|
| 52 | MULTISUBDIR = |
---|
| 53 | MULTIDO = true |
---|
| 54 | MULTICLEAN = true |
---|
| 55 | |
---|
| 56 | SHELL = /bin/sh |
---|
| 57 | |
---|
| 58 | CC = @CC@ |
---|
| 59 | |
---|
| 60 | AS = @AS@ |
---|
| 61 | AR = @AR@ |
---|
| 62 | LD = @LD@ |
---|
| 63 | RANLIB = @RANLIB@ |
---|
| 64 | |
---|
| 65 | CPU_INIT_OBJS = rdimon-aem-el3.o |
---|
| 66 | CPU_INIT_INSTALL = install-cpu-init |
---|
| 67 | |
---|
| 68 | CFLAGS = -g |
---|
| 69 | |
---|
| 70 | # Host specific makefile fragment comes in here. |
---|
| 71 | @host_makefile_frag@ |
---|
| 72 | |
---|
| 73 | .PHONY: all |
---|
| 74 | all: ${CPU_INIT_OBJS} |
---|
| 75 | |
---|
| 76 | # |
---|
| 77 | # here's where we build the test programs for each target |
---|
| 78 | # |
---|
| 79 | .PHONY: test |
---|
| 80 | test: |
---|
| 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 | |
---|
| 86 | clean mostlyclean: |
---|
| 87 | rm -f a.out core *.i *.o *-test *.srec *.dis *.x |
---|
| 88 | |
---|
| 89 | distclean maintainer-clean realclean: clean |
---|
| 90 | rm -f Makefile *~ |
---|
| 91 | |
---|
| 92 | .PHONY: install info install-info clean-info |
---|
| 93 | install: ${CPU_INIT_INSTALL} |
---|
| 94 | |
---|
| 95 | install-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 | |
---|
| 99 | doc: |
---|
| 100 | info: |
---|
| 101 | install-info: |
---|
| 102 | clean-info: |
---|
| 103 | |
---|
| 104 | Makefile: Makefile.in config.status @host_makefile_frag_path@ |
---|
| 105 | $(SHELL) config.status |
---|
| 106 | |
---|
| 107 | config.status: configure |
---|
| 108 | $(SHELL) config.status --recheck |
---|