source: trunk/minix/drivers/log/Makefile@ 15

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

Minix 3.1.2a

File size: 756 bytes
RevLine 
[9]1# Makefile for log driver
2DRIVER = log
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8m = $i/minix
9d = ..
10
11# programs, flags, etc.
12MAKE = exec make
13CC = exec cc
14CFLAGS = -I$i
15LDFLAGS = -i
16LIBS = -lsys -lsysutil
17
18OBJ = log.o diag.o kputc.o
19LIBDRIVER = $d/libdriver/driver.o
20
21
22# build local binary
23all 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
32install: $(DRIVER)
33 install -o root -cs $? /sbin/$(DRIVER)
34
35# clean up local files
36clean:
37 rm -f $(DRIVER) *.o *.bak
38
39
40depend:
41 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
42
43# Include generated dependencies.
44include .depend
45
Note: See TracBrowser for help on using the repository browser.