2005-06-29 12:16:46 +02:00
|
|
|
##
|
|
|
|
## Makefile for ISA ethernet drivers May 02, 2000
|
|
|
|
##
|
|
|
|
## $Log$
|
2006-08-03 00:51:47 +02:00
|
|
|
## Revision 1.5 2006/08/02 22:51:46 beng
|
|
|
|
## At least 8k stack for all drivers so that malloc() works, for grants,
|
|
|
|
## for printf().
|
|
|
|
##
|
2006-07-10 14:43:38 +02:00
|
|
|
## Revision 1.4 2006/07/10 12:43:38 philip
|
|
|
|
## Safecopy support in ethernet drivers.
|
|
|
|
##
|
2005-07-19 15:21:51 +02:00
|
|
|
## Revision 1.3 2005/07/19 13:21:48 jnherder
|
|
|
|
## Renamed src/lib/utils to src/lib/sysutil --- because of new src/lib/util
|
|
|
|
##
|
2005-07-19 14:12:48 +02:00
|
|
|
## Revision 1.2 2005/07/19 12:12:47 jnherder
|
|
|
|
## Changed Makefiles: drivers are now installed in /usr/sbin.
|
|
|
|
## TTY now gets SYS_EVENT message with sigset (e.g., SIGKMESS, SIGKSTOP).
|
|
|
|
##
|
2005-06-29 12:16:46 +02:00
|
|
|
## Revision 1.1 2005/06/29 10:16:46 beng
|
|
|
|
## Import of dpeth 3c501/3c509b/.. ethernet driver by
|
|
|
|
## Giovanni Falzoni <fgalzoni@inwind.it>.
|
|
|
|
##
|
|
|
|
## Revision 2.0 2005/06/26 16:16:46 lsodgf0
|
|
|
|
## Initial revision for Minix 3.0.6
|
|
|
|
##
|
|
|
|
## $Id$
|
|
|
|
|
|
|
|
## Programs, flags, etc.
|
|
|
|
DRIVER = dpeth
|
|
|
|
|
|
|
|
debug = 0
|
|
|
|
|
|
|
|
CC = exec cc
|
|
|
|
LD = $(CC)
|
|
|
|
CPPFLAGS= -I.. -I/usr/include -Ddebug=$(debug)
|
2006-07-10 14:43:38 +02:00
|
|
|
CFLAGS = $(CPPFLAGS)
|
2005-06-29 12:16:46 +02:00
|
|
|
LDFLAGS = -i -o $@
|
|
|
|
|
|
|
|
SRCS = 3c501.c 3c509.c 3c503.c ne.c wd.c 8390.c devio.c netbuff.c dp.c
|
|
|
|
OBJS = 3c501.o 3c509.o 3c503.o ne.o wd.o 8390.o devio.o netbuff.o dp.o
|
2005-07-19 15:21:51 +02:00
|
|
|
LIBS = -lsysutil -lsys # -ltimers
|
2005-06-29 12:16:46 +02:00
|
|
|
|
|
|
|
## Build rules
|
|
|
|
all build: $(DRIVER)
|
|
|
|
|
|
|
|
$(DRIVER): $(OBJS)
|
|
|
|
$(CC) $(OBJS) $(LIBS) $(LDFLAGS)
|
2006-08-03 00:51:47 +02:00
|
|
|
install -S 16k $(DRIVER)
|
2005-06-29 12:16:46 +02:00
|
|
|
|
|
|
|
## Install with other drivers
|
2005-07-19 14:12:48 +02:00
|
|
|
install: /usr/sbin/$(DRIVER)
|
|
|
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
2005-06-29 12:16:46 +02:00
|
|
|
install -o root -cs $? $@
|
|
|
|
|
|
|
|
## Generate dependencies
|
|
|
|
|
|
|
|
depend:
|
|
|
|
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
|
|
|
|
|
|
|
## Clean directory
|
|
|
|
clean:
|
|
|
|
@rm -f $(DRIVER) *.o *.BAK
|
|
|
|
|
|
|
|
include .depend
|
|
|
|
|
|
|
|
## end
|