source: trunk/minix/drivers/dp8390/Makefile@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 693 bytes
Line 
1# Makefile for dp8390 driver
2DRIVER = dp8390
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8m = $i/minix
9b = $i/ibm
10d = ..
11
12# programs, flags, etc.
13CC = exec cc
14CFLAGS = -I$i
15LDFLAGS = -i
16LIBS = -lsys -lsysutil -ltimers
17
18OBJ = 3c503.o dp8390.o ne2000.o rtl8029.o wdeth.o
19
20# build local binary
21all build: $(DRIVER)
22$(DRIVER): $(OBJ)
23 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
24 install -S 4096 $(DRIVER)
25
26# install with other drivers
27install: /usr/sbin/$(DRIVER)
28/usr/sbin/$(DRIVER): $(DRIVER)
29 install -o root -cs $? $@
30
31# clean up local files
32clean:
33 rm -f *.o *.bak $(DRIVER)
34
35depend:
36 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
37
38# Include generated dependencies.
39include .depend
40
Note: See TracBrowser for help on using the repository browser.