. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git] / drivers / at_wini / Makefile
blobcc8d07e0891257807df46d68e88ee4288c615e41
1 # Makefile for the AT disk driver (AT_WINI)
2 DRIVER = at_wini
4 # directories
5 u = /usr
6 i = $u/include
7 s = $i/sys
8 m = $i/minix
9 b = $i/ibm
10 d = ..
11 p = ../libpci
13 # programs, flags, etc.
14 MAKE = exec make
15 CC = exec cc
16 CFLAGS = -I$i $(CPROFILE)
17 LDFLAGS = -i -L../libdriver
18 LIBS = -lsysutil -lsys -ltimers -ldriver
20 OBJ = at_wini.o
23 # build local binary
24 all build: $(DRIVER)
25 $(DRIVER): $(OBJ)
26 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
27 install -S 32k $(DRIVER)
29 # install with other drivers
30 install: /sbin/$(DRIVER)
31 /sbin/$(DRIVER): $(DRIVER)
32 install -o root -cs $? $@
34 # clean up local files
35 clean:
36 rm -f $(DRIVER) *.o *.bak
38 depend:
39 mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
41 # Include generated dependencies.
42 include .depend