Rev 3690 | Rev 4340 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3690 | Rev 4337 | ||
---|---|---|---|
1 | # Makefile for The PCI Library |
1 | # Makefile for The PCI Library |
2 | # (c) 1999 Martin Mares <mj@ucw.cz> |
2 | # (c) 1999 Martin Mares <mj@ucw.cz> |
3 | 3 | ||
4 | # Modified and ported to HelenOS by Jakub Jermar |
4 | # Modified and ported to HelenOS by Jakub Jermar |
5 | 5 | ||
- | 6 | include ../../../Makefile.config |
|
- | 7 | ||
6 | LIBC_PREFIX=$(shell cd ../../../lib/libc; pwd) |
8 | LIBC_PREFIX=$(shell cd ../../../lib/libc; pwd) |
7 | 9 | ||
8 | include ../../../Makefile.config |
10 | include ../../../Makefile.config |
9 | include $(LIBC_PREFIX)/Makefile.toolchain |
11 | include $(LIBC_PREFIX)/Makefile.toolchain |
10 | 12 | ||
11 | LIBS = $(LIBC_PREFIX)/libc.a |
13 | LIBS = $(LIBC_PREFIX)/libc.a |
12 | CFLAGS += -I$(LIBC_PREFIX)/include -trigraphs |
14 | CFLAGS += -I$(LIBC_PREFIX)/include -trigraphs |
13 | 15 | ||
14 | OBJS=access.o generic.o names.o |
16 | OBJS=access.o generic.o names.o |
15 | INCL=internal.h pci.h header.h sysdep.h types.h pci_ids.h |
17 | INCL=internal.h pci.h header.h sysdep.h types.h pci_ids.h |
16 | 18 | ||
17 | PCILIB=libpci.a |
19 | PCILIB=libpci.a |
18 | 20 | ||
19 | OBJS += i386-ports.o |
21 | OBJS += i386-ports.o |
20 | 22 | ||
21 | all: $(PCILIB) |
23 | all: $(PCILIB) |
22 | 24 | ||
23 | $(PCILIB): $(OBJS) |
25 | $(PCILIB): $(OBJS) |
24 | $(AR) rc $@ $(OBJS) |
26 | $(AR) rc $@ $(OBJS) |
25 | 27 | ||
26 | %.o: %.c $(INCL) |
28 | %.o: %.c $(INCL) |
27 | $(CC) $(CFLAGS) -c $< -o $@ |
29 | $(CC) $(CFLAGS) -c $< -o $@ |
28 | 30 | ||
29 | clean: |
31 | clean: |
30 | -rm *.o libpci.a |
32 | -rm *.o libpci.a |
31 | 33 |