source: branches/minix3-book/drivers/at_wini/Makefile@ 20

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

Importazione sorgenti libro

File size: 925 bytes
Line 
1# Makefile for the AT disk driver (AT_WINI)
2DRIVER = at_wini
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8m = $i/minix
9b = $i/ibm
10d = ..
11p = ../libpci
12
13# programs, flags, etc.
14MAKE = exec make
15CC = exec cc
16CFLAGS = -I$i
17LDFLAGS = -i
18LIBS = -lsysutil -lsys -ltimers
19
20OBJ = at_wini.o
21LIBDRIVER = $d/libdriver/driver.o $d/libdriver/drvlib.o
22LIBPCI = $p/pci.o $p/pci_table.o
23
24
25# build local binary
26all build: $(DRIVER)
27$(DRIVER): $(OBJ) $(LIBDRIVER) $(LIBPCI)
28 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBDRIVER) $(LIBS) $(LIBPCI)
29 install -S 8k $(DRIVER)
30
31$(LIBPCI):
32 cd $p && $(MAKE)
33
34$(LIBDRIVER):
35 cd $d/libdriver && $(MAKE)
36
37# install with other drivers
38install: /sbin/$(DRIVER)
39/sbin/$(DRIVER): $(DRIVER)
40 install -o root -cs $? $@
41
42# clean up local files
43clean:
44 rm -f $(DRIVER) *.o *.bak
45
46depend:
47 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
48
49# Include generated dependencies.
50include .depend
51
Note: See TracBrowser for help on using the repository browser.