dec21140A ethernet driver for virtualpc, contributed by nicolas tittley.
[minix.git] / drivers / rtl8169 / Makefile
blob0d9403a60ab1f56532b452a5702bbde71c51e1ee
1 # Makefile for the Realtek RTL8169 ethernet driver (RTL8169)
2 DRIVER = rtl8169
4 # directories
5 u = /usr
6 i = $u/include
7 s = $i/sys
8 m = $i/minix
9 b = $i/ibm
10 d = ..
12 # programs, flags, etc.
13 MAKE = exec make
14 CC = exec cc
15 CFLAGS = -I$i $(CPROFILE)
16 LDFLAGS = -i
17 LIBS = -lsys -ltimers
19 OBJ = rtl8169.o
21 # build local binary
22 all build: $(DRIVER)
23 $(DRIVER): $(OBJ)
24 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
25 install -S 64kw $(DRIVER)
27 # install with other drivers
28 install: /usr/sbin/$(DRIVER)
29 /usr/sbin/$(DRIVER): $(DRIVER)
30 install -o root -cs $? $@
32 # clean up local files
33 clean:
34 rm -f $(DRIVER) *.o *.bak
36 depend:
37 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
39 # Include generated dependencies.
40 include .depend