Subversion Repositories HelenOS

Rev

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

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