Files
oldlinux-files/net/tcpip/ether-995/GNUmakefile
2024-02-19 00:25:04 -05:00

37 lines
1.4 KiB
Makefile

# This file must be named 'GNUmakefile'. When it has that name it
# loaded in preference to the regular 'Makefile' (which it include
# right here) so this has the effect of appending lines to the Makefile.
include Makefile
# Add a few files to tcpip.a.
newobjs = 8390.o 3c503.o ne.o wd.o hp.o auto_irq.o
OBJS := $(OBJS) $(newobjs)
tcpip.a: $(newobjs)
# Set the address and IRQ here. The ne.c and 3c503 driver will autoprobe
# if you set the address or IRQ to zero, so we do that by default.
#
# Add -DEI_NAME="eth0" if you want to be exactly compatible with the default
# driver. This will only work if you don't use the distributed 'we' driver!
#
ether_options := -DEI_NAME=\"eth0\" -DEI8390=0 -DEI8390_IRQ=0
Space.o: Space.c GNUmakefile
$(CC) $(CPPFLAGS) $(CFLAGS) $(ether_options) -c Space.c -o $@
# Change this to define the set of ethercards your kernel will support.
8390.o: 8390.c GNUmakefile
$(CC) $(CPPFLAGS) $(CFLAGS) -DNE2000 -DWD80x3 -DHPLAN -DEL2 -c 8390.c -o $@
# Change this to -DEI_8BIT if you have an 8-bit ethercard (NE1000, E10xx).
ne.o: ne.c GNUmakefile
$(CC) $(CPPFLAGS) $(CFLAGS) -UEI_8BIT -c ne.c -o $@
# Change this to -DEL2_AUI if you use the AUI port.
3c503.o: 3c503.c 3c503reg.h GNUmakefile
$(CC) $(CPPFLAGS) $(CFLAGS) -UEL2_AUI -c 3c503.c -o $@
# Change this to -DSHMEM=0xd0000 if you have an old non-EEPROM wd8003
wd.o: wd.c GNUmakefile
$(CC) $(CPPFLAGS) $(CFLAGS) -UWD_SHMEM -c wd.c -o $@