wdenk | fa850ba | 2002-10-29 19:01:12 +0000 | [diff] [blame] | 1 | # |
Wolfgang Denk | 41b4d28 | 2007-10-23 16:50:03 +0200 | [diff] [blame] | 2 | # (C) Copyright 2000-2007 |
wdenk | fa850ba | 2002-10-29 19:01:12 +0000 | [diff] [blame] | 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
| 5 | # See file CREDITS for list of people who contributed to this |
| 6 | # project. |
| 7 | # |
| 8 | # This program is free software; you can redistribute it and/or |
| 9 | # modify it under the terms of the GNU General Public License as |
| 10 | # published by the Free Software Foundation; either version 2 of |
| 11 | # the License, or (at your option) any later version. |
| 12 | # |
| 13 | # This program is distributed in the hope that it will be useful, |
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
wdenk | 232c150 | 2004-03-12 00:14:09 +0000 | [diff] [blame] | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
wdenk | fa850ba | 2002-10-29 19:01:12 +0000 | [diff] [blame] | 16 | # GNU General Public License for more details. |
| 17 | # |
| 18 | # You should have received a copy of the GNU General Public License |
| 19 | # along with this program; if not, write to the Free Software |
| 20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | # MA 02111-1307 USA |
| 22 | # |
| 23 | |
| 24 | include $(TOPDIR)/config.mk |
| 25 | |
| 26 | # CFLAGS += -DET_DEBUG -DDEBUG |
| 27 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 28 | LIB = $(obj)libdrivers.a |
wdenk | fa850ba | 2002-10-29 19:01:12 +0000 | [diff] [blame] | 29 | |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 30 | COBJS-y += ali512x.o |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 31 | COBJS-y += ds1722.o |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 32 | COBJS-y += ns87308.o |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 33 | COBJS-y += status_led.o |
Grant Likely | ec00c76 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 34 | |
| 35 | # |
Grant Likely | 5798f87 | 2007-09-24 09:05:31 -0600 | [diff] [blame] | 36 | # Block and Flash Drivers |
| 37 | # |
| 38 | COBJS-y += ahci.o |
| 39 | COBJS-y += at45.o |
| 40 | COBJS-y += ata_piix.o |
| 41 | COBJS-y += cfi_flash.o |
| 42 | COBJS-y += dataflash.o |
| 43 | COBJS-y += mw_eeprom.o |
| 44 | COBJS-y += sil680.o |
| 45 | COBJS-y += sym53c8xx.o |
| 46 | COBJS-y += systemace.o |
| 47 | |
| 48 | # |
Grant Likely | ec00c76 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 49 | # Console Drivers |
| 50 | # |
Grant Likely | ec00c76 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 51 | COBJS-y += i8042.o |
| 52 | COBJS-y += keyboard.o |
Grant Likely | ec00c76 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 53 | COBJS-y += pc_keyb.o |
| 54 | COBJS-y += ps2ser.o |
| 55 | COBJS-y += ps2mult.o |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 56 | |
Grant Likely | 754f230 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 57 | # |
Grant Likely | 4d4faae | 2007-09-24 09:05:31 -0600 | [diff] [blame] | 58 | # Miscellaneous Drivers |
| 59 | # |
| 60 | COBJS-y += ali512x.o |
| 61 | COBJS-y += ns87308.o |
| 62 | COBJS-y += status_led.o |
| 63 | |
Grant Likely | f0037c5 | 2007-09-24 09:05:30 -0600 | [diff] [blame] | 64 | COBJS := $(COBJS-y) |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 65 | SRCS := $(COBJS:.o=.c) |
| 66 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 67 | |
wdenk | fa850ba | 2002-10-29 19:01:12 +0000 | [diff] [blame] | 68 | all: $(LIB) |
| 69 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 70 | $(LIB): $(obj).depend $(OBJS) |
Wolfgang Denk | 2b208f5 | 2006-10-09 01:02:05 +0200 | [diff] [blame] | 71 | $(AR) $(ARFLAGS) $@ $(OBJS) |
wdenk | fa850ba | 2002-10-29 19:01:12 +0000 | [diff] [blame] | 72 | |
| 73 | ######################################################################### |
| 74 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 75 | # defines $(obj).depend target |
| 76 | include $(SRCTREE)/rules.mk |
wdenk | fa850ba | 2002-10-29 19:01:12 +0000 | [diff] [blame] | 77 | |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 78 | sinclude $(obj).depend |
wdenk | fa850ba | 2002-10-29 19:01:12 +0000 | [diff] [blame] | 79 | |
| 80 | ######################################################################### |