2007-01-12 17:35:04 +01:00
|
|
|
# Makefile for readclock 'driver'
|
|
|
|
DRIVER = readclock.drv
|
2005-08-04 21:23:03 +02:00
|
|
|
|
|
|
|
# programs, flags, etc.
|
|
|
|
MAKE = exec make
|
|
|
|
CC = exec cc
|
2007-01-12 17:35:04 +01:00
|
|
|
CFLAGS=-D_MINIX=1 -D_POSIX_SOURCE=1 -D_SYSTEM=1
|
|
|
|
LDFLAGS = -i
|
|
|
|
LIBS = -lsysutil -lsys
|
2005-08-04 21:23:03 +02:00
|
|
|
|
2007-01-12 17:35:04 +01:00
|
|
|
OBJ = readclock.o
|
2005-08-04 21:23:03 +02:00
|
|
|
|
|
|
|
# build local binary
|
2007-01-12 17:35:04 +01:00
|
|
|
all build: $(DRIVER)
|
2007-01-12 14:33:12 +01:00
|
|
|
$(DRIVER): $(OBJ)
|
|
|
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
2006-08-03 00:51:47 +02:00
|
|
|
install -S 8k $(DRIVER)
|
2005-08-04 21:23:03 +02:00
|
|
|
|
|
|
|
# install with other drivers
|
|
|
|
install: /sbin/$(DRIVER)
|
|
|
|
/sbin/$(DRIVER): $(DRIVER)
|
|
|
|
install -o root -cs $? $@
|
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
|
|
|
rm -f $(DRIVER) *.o *.bak
|
|
|
|
|
|
|
|
depend:
|
2007-01-12 17:35:04 +01:00
|
|
|
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2005-08-04 21:23:03 +02:00
|
|
|
|
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
|
|
|
|