panic() cleanup.
[minix.git] / drivers / e1000 / Makefile
blob127dfd88a4443674960b5d3c9b721b0552ac08af
2 # Makefile for the Intel Pro/1000 driver.
4 DRIVER = e1000
7 # Directories.
9 u = /usr
10 i = $u/include
11 s = $i/sys
12 m = $i/minix
13 b = $i/ibm
14 d = ..
17 # Build Programs, Flags and Variables.
19 CC = exec cc
20 CFLAGS = -I$i $(CPROFILE)
21 LDFLAGS = -i
22 LIBS = -lsys -ltimers
23 OBJ = e1000.o
25 # build local binary
26 all build: $(DRIVER)
27 $(DRIVER): $(OBJ)
28 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
29 install -S 128k $(DRIVER)
31 # install with other drivers
32 install: /usr/sbin/$(DRIVER)
33 /usr/sbin/$(DRIVER): $(DRIVER)
34 install -o root -cs $? $@
36 # clean up local files
37 clean:
38 rm -f *.o $(DRIVER)
40 depend:
41 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend