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)
|
---|
2 | DRIVER = at_wini
|
---|
3 |
|
---|
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
|
---|
12 |
|
---|
13 | # programs, flags, etc.
|
---|
14 | MAKE = exec make
|
---|
15 | CC = exec cc
|
---|
16 | CFLAGS = -I$i
|
---|
17 | LDFLAGS = -i
|
---|
18 | LIBS = -lsysutil -lsys -ltimers
|
---|
19 |
|
---|
20 | OBJ = at_wini.o
|
---|
21 | LIBDRIVER = $d/libdriver/driver.o $d/libdriver/drvlib.o
|
---|
22 | LIBPCI = $p/pci.o $p/pci_table.o
|
---|
23 |
|
---|
24 |
|
---|
25 | # build local binary
|
---|
26 | all 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
|
---|
38 | install: /sbin/$(DRIVER)
|
---|
39 | /sbin/$(DRIVER): $(DRIVER)
|
---|
40 | install -o root -cs $? $@
|
---|
41 |
|
---|
42 | # clean up local files
|
---|
43 | clean:
|
---|
44 | rm -f $(DRIVER) *.o *.bak
|
---|
45 |
|
---|
46 | depend:
|
---|
47 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
|
---|
48 |
|
---|
49 | # Include generated dependencies.
|
---|
50 | include .depend
|
---|
51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.