source: trunk/minix/drivers/pci/Makefile@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 664 bytes
RevLine 
[9]1# Makefile for PCI support
2DRIVER = pci
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8m = $i/minix
9b = $i/ibm
10d = ..
11
12# programs, flags, etc.
13CC = cc
14CFLAGS = -I$i
15LDFLAGS = -i
16LIBS = -lsys -lsysutil -ltimers
17
18OBJ = main.o pci.o pci_table.o
19
20# build local binary
21all build: $(DRIVER)
22$(DRIVER): $(OBJ)
23 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
24 install -S 4096 $(DRIVER)
25
26# install with other drivers
27install: /usr/sbin/$(DRIVER)
28/usr/sbin/$(DRIVER): $(DRIVER)
29 install -o root -cs $? $@
30
31# clean up local files
32clean:
33 rm -f *.o *.bak $(DRIVER)
34
35depend:
36 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
37
38# Include generated dependencies.
39include .depend
40
Note: See TracBrowser for help on using the repository browser.