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 | ## |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 15 | |
Stefan Reinauer | 7b76912 | 2010-04-20 23:04:46 +0000 | [diff] [blame] | 16 | HOSTCC = gcc |
| 17 | AR?=ar |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 18 | LAROBJS = self.o lib.o |
| 19 | CFLAGS = -g -Wall |
| 20 | |
| 21 | liblar.a: $(LAROBJS) |
Stefan Reinauer | 7b76912 | 2010-04-20 23:04:46 +0000 | [diff] [blame] | 22 | $(AR) rc $@ $(LAROBJS) |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 23 | |
| 24 | %.o: %.c |
Stefan Reinauer | 7b76912 | 2010-04-20 23:04:46 +0000 | [diff] [blame] | 25 | $(HOSTCC) -c $(CFLAGS) -o $@ $< |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 26 | |
| 27 | clean: |
| 28 | rm -f liblar.a *.o |