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