Subversion Repositories HelenOS

Rev

Rev 3343 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3343 Rev 3742
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 $(LIBC_PREFIX)/Makefile.toolchain
10
include $(LIBC_PREFIX)/Makefile.toolchain
9
 
11
 
10
LIBS = $(LIBC_PREFIX)/libc.a
12
LIBS = $(LIBC_PREFIX)/libc.a
11
CFLAGS += -I$(LIBC_PREFIX)/include -trigraphs
13
CFLAGS += -I$(LIBC_PREFIX)/include -trigraphs
12
 
14
 
13
OBJS=access.o generic.o names.o
15
OBJS=access.o generic.o names.o
14
INCL=internal.h pci.h header.h sysdep.h types.h pci_ids.h
16
INCL=internal.h pci.h header.h sysdep.h types.h pci_ids.h
15
 
17
 
16
PCILIB=libpci.a
18
PCILIB=libpci.a
17
 
19
 
18
OBJS += i386-ports.o
20
OBJS += i386-ports.o
19
 
21
 
20
all: $(PCILIB)
22
all: $(PCILIB)
21
 
23
 
22
$(PCILIB): $(OBJS)
24
$(PCILIB): $(OBJS)
23
	$(AR) rc $@ $(OBJS)
25
	$(AR) rc $@ $(OBJS)
24
 
26
 
25
%.o: %.c $(INCL)
27
%.o: %.c $(INCL)
26
	$(CC) $(CFLAGS) -c $< -o $@
28
	$(CC) $(CFLAGS) -c $< -o $@
27
 
29
 
28
clean:
30
clean:
29
	-rm *.o libpci.a
31
	-rm *.o libpci.a
30
 
32