##================================================================
##     Davicom Semiconductor Inc.  Driver for Linux
##   --------------------------------------------------------
## Description:
##              Compile th DMFE driver to dmfe.o
##
## Modification List:
## 01/25/2000	by Sten Wang
##================================================================

CC	= gcc
CFLAGS  = -DMODULE -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O6 -c
MFLAGS  = -DMODVERSIONS
SMPFLAGS = -D__SMP__

##=============================================
## Default Compiler: make all
##=============================================
all:		org


##=============================================
## One processor and normal kernel: make org
##=============================================
org:	dmfe.c \
	Makefile
	$(CC) $(CFLAGS) dmfe.c


##=============================================
## One processor and enable kernel module function
##     : make mod
##=============================================
mod:	dmfe.c \
	Makefile
	$(CC) $(MFLAGS) $(CFLAGS) dmfe.c


##=============================================
## Two processor 
##     : make smp
##=============================================
smp:	dmfe.c \
	Makefile
	$(CC) $(SMPFLAGS) $(CFLAGS) dmfe.c


##=============================================
## Two processor and enable kernel module function
##     : make smp_mod
##=============================================
smp_mod:	dmfe.c \
	Makefile
	$(CC) $(SMPFLAGS) $(MFLAGS) $(CFLAGS) dmfe.c

clean:			
			rm *o
