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)
|
2008-02-25 12:54:04 +01:00
|
|
|
LDFLAGS = -i -L../libdriver_asyn
|
2008-11-19 13:26:10 +01:00
|
|
|
LIBS = -ldriver -lsys
|
2008-02-25 12:54:04 +01:00
|
|
|
LIB_DEP = ../libdriver_asyn/libdriver.a
|
2005-07-08 19:23:44 +02:00
|
|
|
|
2009-01-26 18:43:59 +01:00
|
|
|
OBJ = log.o diag.o
|
2005-07-08 19:23:44 +02:00
|
|
|
|
|
|
|
# build local binary
|
|
|
|
all build: $(DRIVER)
|
2008-02-25 12:54:04 +01:00
|
|
|
$(DRIVER): $(OBJ) $(LIB_DEP)
|
2007-01-12 14:33:12 +01:00
|
|
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
2008-11-19 13:26:10 +01:00
|
|
|
install -S 32kb $(DRIVER)
|
2005-07-08 19:23:44 +02:00
|
|
|
|
|
|
|
# install with other drivers
|
2006-03-03 11:21:45 +01:00
|
|
|
install: $(DRIVER)
|
2008-11-19 13:26:10 +01:00
|
|
|
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
|
|
|
|
|