dec21140A ethernet driver for virtualpc, contributed by nicolas tittley.
[minix.git] / drivers / dpeth / Makefile
blob81f9db26a44c111904c2b0bf2f8de1634b37c5e1
1 ##
2 ## Makefile for ISA ethernet drivers May 02, 2000
3 ##
5 ## Programs, flags, etc.
6 DRIVER = dpeth
8 debug = 0
10 CC = exec cc
11 LD = $(CC)
12 CPPFLAGS= -I.. -I/usr/include -Ddebug=$(debug) $(CPROFILE)
13 CFLAGS = -ws $(CPPFLAGS)
14 LDFLAGS = -i -o $@
16 SRCS = 3c501.c 3c509.c 3c503.c ne.c wd.c 8390.c devio.c netbuff.c dp.c
17 OBJS = 3c501.o 3c509.o 3c503.o ne.o wd.o 8390.o devio.o netbuff.o dp.o
18 LIBS = -lsys
20 ## Build rules
21 all build: $(DRIVER)
23 $(DRIVER): $(OBJS)
24 $(CC) $(OBJS) $(LIBS) $(LDFLAGS)
25 install -S 16k $(DRIVER)
27 ## Install with other drivers
28 install: /usr/sbin/$(DRIVER)
29 /usr/sbin/$(DRIVER): $(DRIVER)
30 install -o root -cs $? $@
32 ## Generate dependencies
34 depend:
35 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
37 ## Clean directory
38 clean:
39 @rm -f $(DRIVER) *.o *.BAK
41 include .depend
43 ## end