#
# Makefile for building the imb driver on Linux 2.2 
#
# $Modtime:   14 Oct 1999 13:50:06  $
# $Revision:   1.3  $
#

MOD=imb
MOD_CONF= $(MOD:%=%.conf)
NTIO_INC = ../ntioinc
#include  ../make.inc

#don't need this since we can grab it from make.inc.
CC=gcc
#Use the cflags that shows all warnings or the one that doesn't.
#CFLAGS = -O2 -Wall
CFLAGS = -O2  
#K_CFLAGS = -D__KERNEL__  -DMODULE -D__SMP__  -DCONFIG_X86_LOCAL_APIC -D__NO_VERSION__ 
K_CFLAGS = -D__KERNEL__ -DMODULE  -D__SMP__ -DCONFIG_X86_LOCAL_APIC -DMODULES -DMODVERSIONS  -include /usr/include/linux/modversions.h
CPPFLAGS = -I$(NTIO_INC) -I. -DLINUX 

#List all the relevant files here
OBJS = 	imb_lin.o \
		imb_linmsgs.o \
		kcs.o\
		imb_asyn.o \
		smic.o \
		imb_drv.o 

all: $(MOD)

$(MOD): $(OBJS)
	$(LD) -r -o $(MOD) $(OBJS)

%.o:	%.c
		$(CC) -c $(CFLAGS) $(CPPFLAGS) $(K_CFLAGS) -o $@ $<

clean:
	rm -f $(OBJS)

clobber:
	rm -f $(OBJS) $(MOD)

