Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the bayou project. |
| 3 | ## |
| 4 | ## Copyright (C) 2008 Advanced Micro Devices, Inc. |
| 5 | ## |
| 6 | ## This program is free software; you can redistribute it and/or modify |
| 7 | ## it under the terms of the GNU General Public License version 2 as |
| 8 | ## published by the Free Software Foundation. |
| 9 | ## |
| 10 | ## This program is distributed in the hope that it will be useful, |
| 11 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ## GNU General Public License for more details. |
| 14 | ## |
| 15 | ## You should have received a copy of the GNU General Public License |
| 16 | ## along with this program; if not, write to the Free Software |
Paul Menzel | a46a712 | 2013-02-23 18:37:27 +0100 | [diff] [blame] | 17 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 18 | ## |
| 19 | |
Stefan Reinauer | 7b76912 | 2010-04-20 23:04:46 +0000 | [diff] [blame] | 20 | HOSTCC = gcc |
| 21 | AR?=ar |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 22 | LAROBJS = self.o lib.o |
| 23 | CFLAGS = -g -Wall |
| 24 | |
| 25 | liblar.a: $(LAROBJS) |
Stefan Reinauer | 7b76912 | 2010-04-20 23:04:46 +0000 | [diff] [blame] | 26 | $(AR) rc $@ $(LAROBJS) |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 27 | |
| 28 | %.o: %.c |
Stefan Reinauer | 7b76912 | 2010-04-20 23:04:46 +0000 | [diff] [blame] | 29 | $(HOSTCC) -c $(CFLAGS) -o $@ $< |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 30 | |
| 31 | clean: |
| 32 | rm -f liblar.a *.o |