Rev 2927 | Rev 4340 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 3690 | ||
---|---|---|---|
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 | LIBC_PREFIX=$(shell cd ../../../lib/libc; pwd) |
6 | LIBC_PREFIX=$(shell cd ../../../lib/libc; pwd) |
7 | 7 | ||
- | 8 | include ../../../Makefile.config |
|
8 | include $(LIBC_PREFIX)/Makefile.toolchain |
9 | include $(LIBC_PREFIX)/Makefile.toolchain |
9 | 10 | ||
10 | LIBS = $(LIBC_PREFIX)/libc.a |
11 | LIBS = $(LIBC_PREFIX)/libc.a |
11 | CFLAGS += -I$(LIBC_PREFIX)/include -trigraphs |
12 | CFLAGS += -I$(LIBC_PREFIX)/include -trigraphs |
12 | 13 | ||
13 | OBJS=access.o generic.o names.o |
14 | OBJS=access.o generic.o names.o |
14 | INCL=internal.h pci.h header.h sysdep.h types.h pci_ids.h |
15 | INCL=internal.h pci.h header.h sysdep.h types.h pci_ids.h |
15 | 16 | ||
16 | PCILIB=libpci.a |
17 | PCILIB=libpci.a |
17 | 18 | ||
18 | OBJS += i386-ports.o |
19 | OBJS += i386-ports.o |
19 | 20 | ||
20 | all: $(PCILIB) |
21 | all: $(PCILIB) |
21 | 22 | ||
22 | $(PCILIB): $(OBJS) |
23 | $(PCILIB): $(OBJS) |
23 | $(AR) rc $@ $(OBJS) |
24 | $(AR) rc $@ $(OBJS) |
24 | 25 | ||
25 | %.o: %.c $(INCL) |
26 | %.o: %.c $(INCL) |
26 | $(CC) $(CFLAGS) -c $< -o $@ |
27 | $(CC) $(CFLAGS) -c $< -o $@ |
27 | 28 | ||
28 | clean: |
29 | clean: |
29 | -rm *.o libpci.a |
30 | -rm *.o libpci.a |
30 | 31 |