dec21140A ethernet driver for virtualpc, contributed by nicolas tittley.
[minix.git] / drivers / dec21140A / Makefile
blob94abfd6a434836e5b4e8c13592f37a83ab6317f2
1 ##
2 ## Makefile for Dec21140A ethernet board driver
3 ##
5 ## Programs, flags, etc.
6 DRIVER = dec21140A
8 debug = 0
10 CC = exec cc
11 LD = $(CC)
12 CPPFLAGS= -I.. -I/usr/include -Ddebug=$(debug) $(CPROFILE)
13 CFLAGS = -ws -w -Wall $(CPPFLAGS)
14 LDFLAGS = -i -o $@
16 SRCS = dec21140A.c
17 OBJS = dec21140A.o
18 LIBS = -lsys # -ltimers
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