Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2007 |
| 3 | # Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> |
| 4 | # |
| 5 | # Copyright (C) 2007 |
| 6 | # Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 7 | # |
| 8 | # Copyright (C) 2007 |
| 9 | # Kenati Technologies, Inc. |
| 10 | # |
| 11 | # (C) Copyright 2008 |
| 12 | # Mark Jonas <mark.jonas@de.bosch.com> |
| 13 | # |
| 14 | # board/mpr2/Makefile |
| 15 | # |
| 16 | # This program is free software; you can redistribute it and/or |
| 17 | # modify it under the terms of the GNU General Public License as |
| 18 | # published by the Free Software Foundation; either version 2 of |
| 19 | # the License, or (at your option) any later version. |
| 20 | # |
| 21 | # This program is distributed in the hope that it will be useful, |
| 22 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | # GNU General Public License for more details. |
| 25 | # |
| 26 | # You should have received a copy of the GNU General Public License |
| 27 | # along with this program; if not, write to the Free Software |
| 28 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 29 | # MA 02111-1307 USA |
| 30 | |
| 31 | include $(TOPDIR)/config.mk |
| 32 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 33 | LIB = $(obj)lib$(BOARD).a |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 34 | |
| 35 | OBJS := mpr2.o |
| 36 | SOBJS := lowlevel_init.o |
| 37 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 38 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 39 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 40 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 41 | |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 42 | $(LIB): $(OBJS) $(SOBJS) |
Wolfgang Denk | 9ef20dc | 2008-07-02 23:00:14 +0200 | [diff] [blame] | 43 | $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 44 | |
| 45 | clean: |
| 46 | rm -f $(SOBJS) $(OBJS) |
| 47 | |
| 48 | distclean: clean |
Wolfgang Denk | 6140a02 | 2008-07-02 23:49:18 +0200 | [diff] [blame^] | 49 | rm -f $(LIB) core *.bak $(obj).depend |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 50 | |
| 51 | ######################################################################### |
| 52 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 53 | # defines $(obj).depend target |
| 54 | include $(SRCTREE)/rules.mk |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 55 | |
Wolfgang Denk | 102740d | 2008-07-02 23:38:50 +0200 | [diff] [blame] | 56 | sinclude $(obj).depend |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 57 | |
| 58 | ######################################################################### |