top manpage update
[minix.git] / drivers / atl2 / Makefile
blobf3f392874d61ec059993c844f14bf6f254138a14
1 # Makefile for the Attansic/Atheros L2 ethernet driver (ATL2)
2 DRIVER = atl2
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
19 OBJ = atl2.o
21 # build local binary
22 all build: $(DRIVER)
23 $(DRIVER): $(OBJ)
24 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
26 # install with other drivers
27 install: /usr/sbin/$(DRIVER)
28 /usr/sbin/$(DRIVER): $(DRIVER)
29 install -o root -cs $? $@
31 # clean up local files
32 clean:
33 rm -f $(DRIVER) *.o *.bak
35 depend:
36 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend