# Uncomment the variable below to enable Enhanced PCI 2 Ethernet bridge feature
#
# PCI2ETH=1

ifndef PCI2ETH
	obj-m		+= comcerto_pci.o
else
	module		:= comcerto-pci2eth
	obj-m		+= comcerto-pci2eth.o
	$(module)-objs	+= comcerto_pci.o comcerto_pci2eth.o
	EXTRA_CFLAGS	:= -DCONFIG_COMCERTO_PCI2ETH_BRIDGE
endif


KERNELDIR	?= /lib/modules/$(shell uname -r)/build
PWD		:= $(shell pwd)

EXTRA_CFLAGS	+= -I$(M) -g


all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD)

install:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install

clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
