all: sundance.o pci-scan.o

sundance.o: sundance.c pci-scan.h kern_compat.h
	gcc -DMODULE -D__KERNEL__  -I/usr/src/linux/include -Wall -Wstrict-prototypes -O6 -c sundance.c	
	
pci-scan.o: pci-scan.c pci-scan.h
	gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/include -DEXPORT_SYMTAB -Wall -Wstrict-prototypes -O6 -c pci-scan.c
	
smp: sundance-smp.o pci-scan.o	
sundance-smp.o: sundance.c pci-scan.h kern_compat.h
	gcc -D__SMP__ -DMODULE -D__KERNEL__  -I/usr/src/linux/include -Wall -Wstrict-prototypes -O6 -c sundance.c		
clean: 
	rm -f core *.o
