2005-06-29 12:16:46 +02:00
|
|
|
##
|
|
|
|
## Makefile for ISA ethernet drivers May 02, 2000
|
|
|
|
##
|
|
|
|
|
|
|
|
## Programs, flags, etc.
|
|
|
|
DRIVER = dpeth
|
|
|
|
|
|
|
|
debug = 0
|
|
|
|
|
|
|
|
CC = exec cc
|
|
|
|
LD = $(CC)
|
2006-10-30 16:53:38 +01:00
|
|
|
CPPFLAGS= -I.. -I/usr/include -Ddebug=$(debug) $(CPROFILE)
|
|
|
|
CFLAGS = -ws $(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
|
2008-11-19 13:26:10 +01:00
|
|
|
LIBS = -lsys
|
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:
|
2007-02-08 17:26:20 +01:00
|
|
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2005-06-29 12:16:46 +02:00
|
|
|
|
|
|
|
## Clean directory
|
|
|
|
clean:
|
|
|
|
@rm -f $(DRIVER) *.o *.BAK
|
|
|
|
|
|
|
|
|
|
|
|
## end
|