#***************************************************************************
# 
# Makefile for 3Com's Linux driver for 3c990 series Network Interface Cards 
#
#***************************************************************************

# Source file name
SRC = 3c990.c

# Module name 
MODULE = 3c990.o

# Include file
INCLUDE = 3c990img.h

# Compiler 
CC = gcc


ifneq (,$(wildcard /usr/src/linux))
INCLUDEDIR = /usr/src/linux/include
else
INCLUDEDIR = /usr/src/linux-2.4/include
endif

CFLAGS = -c -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2

up: $(SRC) $(INCLUDE)
	gcc $(CFLAGS) -I$(INCLUDEDIR) 3c990.c `[ -f $(INCLUDEDIR)/linux/modversions.h ] && echo -DMODVERSIONS`

smp: $(SRC) $(INCLUDE)
	gcc $(CFLAGS) -D__SMP__ -I$(INCLUDEDIR) 3c990.c  `[ -f -$(INCLUDEDIR)/linux/modversions.h ] && echo -DMODVERSIONS`

clean:
	rm -f *.o


