fix compiler warning
[minix.git] / drivers / log / Makefile
blob9a3dd3ba3caa84e21cab6ea41354954567c0ba47
1 # Makefile for log driver
2 DRIVER = log
4 # directories
5 u = /usr
6 i = $u/include
7 s = $i/sys
8 m = $i/minix
9 d = ..
11 # programs, flags, etc.
12 MAKE = exec make
13 CC = exec cc
14 CFLAGS = -I$i $(CPROFILE)
15 LDFLAGS = -i -L../libdriver_asyn
16 LIBS = -ldriver -lsys
17 LIB_DEP = ../libdriver_asyn/libdriver.a
19 OBJ = log.o diag.o
21 # build local binary
22 all build: $(DRIVER)
23 $(DRIVER): $(OBJ) $(LIB_DEP)
24 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
25 install -S 32kb $(DRIVER)
27 # install with other drivers
28 install: $(DRIVER)
29 install -o root -cs $< /sbin/$(DRIVER)
31 # clean up local files
32 clean:
33 rm -f $(DRIVER) *.o *.bak
36 depend:
37 mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
39 # Include generated dependencies.
40 include .depend