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
|
2008-11-19 13:26:10 +01:00
|
|
|
LIBS = -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)
|
2009-02-06 17:28:35 +01:00
|
|
|
install $(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-02-08 17:26:20 +01:00
|
|
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2005-08-04 21:23:03 +02:00
|
|
|
|
|
|
|
|