2005-04-21 16:53:53 +02:00
|
|
|
# Makefile for driver library
|
|
|
|
|
|
|
|
# Directories
|
|
|
|
u = /usr
|
|
|
|
i = $u/include
|
|
|
|
s = $i/sys
|
|
|
|
b = $i/ibm
|
|
|
|
m = $i/minix
|
|
|
|
|
|
|
|
# Programs, flags, etc.
|
|
|
|
CC = exec cc
|
|
|
|
CFLAGS = -I$i
|
|
|
|
LDFLAGS = -i
|
|
|
|
LIBS = -lsys -lutils
|
|
|
|
|
|
|
|
OBJECTS = driver.o drvlib.o
|
|
|
|
|
2005-05-11 11:02:00 +02:00
|
|
|
all build install: $(OBJECTS)
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
# $(CC) -c $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.bak
|
|
|
|
|
2005-05-03 11:15:37 +02:00
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
# Dependencies
|
|
|
|
a = $m/config.h $i/ansi.h $m/type.h $m/com.h $m/callnr.h $s/types.h \
|
|
|
|
$m/const.h $m/syslib.h $m/utils.h \
|
|
|
|
$i/string.h $i/limits.h $i/stddef.h $i/errno.h \
|
|
|
|
$m/partition.h $m/u64.h
|
|
|
|
|
|
|
|
driver.o: driver.h $a
|
|
|
|
driver.o: $s/ioc_disk.h
|
|
|
|
|
|
|
|
drvlib.o: driver.h $a
|
|
|
|
drvlib.o: drvlib.h $b/partition.h
|
|
|
|
|