dec21140A ethernet driver for virtualpc, contributed by nicolas tittley.
[minix.git] / drivers / readclock / Makefile
blob73867d1754e48467e3639f1ffff80f152cf9520f
1 # Makefile for readclock 'driver'
2 DRIVER = readclock.drv
4 # programs, flags, etc.
5 MAKE = exec make
6 CC = exec cc
7 CFLAGS=-D_MINIX=1 -D_POSIX_SOURCE=1 -D_SYSTEM=1
8 LDFLAGS = -i
9 LIBS = -lsys
11 OBJ = readclock.o
13 # build local binary
14 all build: $(DRIVER)
15 $(DRIVER): $(OBJ)
16 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
17 install $(DRIVER)
19 # install with other drivers
20 install: /sbin/$(DRIVER)
21 /sbin/$(DRIVER): $(DRIVER)
22 install -o root -cs $? $@
24 # clean up local files
25 clean:
26 rm -f $(DRIVER) *.o *.bak
28 depend:
29 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
31 # Include generated dependencies.
32 include .depend