2005-07-08 19:23:44 +02:00
|
|
|
# Makefile for log driver
|
|
|
|
DRIVER = log
|
|
|
|
|
|
|
|
# directories
|
|
|
|
u = /usr
|
|
|
|
i = $u/include
|
|
|
|
s = $i/sys
|
|
|
|
m = $i/minix
|
|
|
|
d = ..
|
|
|
|
|
|
|
|
# programs, flags, etc.
|
|
|
|
MAKE = exec make
|
|
|
|
CC = exec cc
|
2006-10-30 16:53:38 +01:00
|
|
|
CFLAGS = -I$i $(CPROFILE)
|
2007-01-12 14:33:12 +01:00
|
|
|
LDFLAGS = -i -L../libdriver
|
|
|
|
LIBS = -lsysutil -ldriver -lsys
|
2005-07-08 19:23:44 +02:00
|
|
|
|
2005-07-21 20:29:52 +02:00
|
|
|
OBJ = log.o diag.o kputc.o
|
2005-07-08 19:23:44 +02:00
|
|
|
|
|
|
|
# build local binary
|
|
|
|
all build: $(DRIVER)
|
2007-01-12 14:33:12 +01:00
|
|
|
$(DRIVER): $(OBJ)
|
|
|
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
2006-10-20 15:54:14 +02:00
|
|
|
install -S 16kb $(DRIVER)
|
2005-07-08 19:23:44 +02:00
|
|
|
|
|
|
|
# install with other drivers
|
2006-03-03 11:21:45 +01:00
|
|
|
install: $(DRIVER)
|
|
|
|
install -o root -cs $? /sbin/$(DRIVER)
|
2005-07-08 19:23:44 +02:00
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
|
|
|
rm -f $(DRIVER) *.o *.bak
|
|
|
|
|
|
|
|
|
|
|
|
depend:
|
2007-02-08 17:26:20 +01:00
|
|
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
|
2005-07-08 19:23:44 +02:00
|
|
|
|
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
|
|
|
|