Last change
on this file was 4, checked in by Mattia Monga, 14 years ago |
Importazione sorgenti libro
|
File size:
783 bytes
|
Line | |
---|
1 | # Makefile for log driver
|
---|
2 | DRIVER = log
|
---|
3 |
|
---|
4 | # directories
|
---|
5 | u = /usr
|
---|
6 | i = $u/include
|
---|
7 | s = $i/sys
|
---|
8 | m = $i/minix
|
---|
9 | d = ..
|
---|
10 |
|
---|
11 | # programs, flags, etc.
|
---|
12 | MAKE = exec make
|
---|
13 | CC = exec cc
|
---|
14 | CFLAGS = -I$i
|
---|
15 | LDFLAGS = -i
|
---|
16 | LIBS = -lsys -lsysutil
|
---|
17 |
|
---|
18 | OBJ = log.o diag.o kputc.o
|
---|
19 | LIBDRIVER = $d/libdriver/driver.o
|
---|
20 |
|
---|
21 |
|
---|
22 | # build local binary
|
---|
23 | all build: $(DRIVER)
|
---|
24 | $(DRIVER): $(OBJ) $(LIBDRIVER)
|
---|
25 | $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBDRIVER) $(LIBS)
|
---|
26 | install -S 4kb $(DRIVER)
|
---|
27 |
|
---|
28 | $(LIBDRIVER):
|
---|
29 | cd $d/libdriver && $(MAKE)
|
---|
30 |
|
---|
31 | # install with other drivers
|
---|
32 | install: /usr/sbin/$(DRIVER)
|
---|
33 | /usr/sbin/$(DRIVER): $(DRIVER)
|
---|
34 | install -o root -cs $? $@
|
---|
35 |
|
---|
36 | # clean up local files
|
---|
37 | clean:
|
---|
38 | rm -f $(DRIVER) *.o *.bak
|
---|
39 |
|
---|
40 |
|
---|
41 | depend:
|
---|
42 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
|
---|
43 |
|
---|
44 | # Include generated dependencies.
|
---|
45 | include .depend
|
---|
46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.