## Copyright(c) 2002,2003 Device Drivers Limited, All rights reserved. ## ## info@devdrv.com http://www.devdrv.com/ ## TARGETS = shsmod perform thread-io block onebyone serial.o all: $(TARGETS) block: block.c gcc -g -o $@ block.c onebyone: onebyone.c gcc -g -o $@ onebyone.c thread-io: thread-io.c gcc -g -lpthread -o $@ thread-io.c perform: perform.c gcc -g -lpthread -o $@ perform.c shsmod: shsmod.c shschip.c shstable.c shstable.h gcc -g -o $@ shsmod.c serial.o: serial.c shschip.c shstable.c shstable.h _KERNEL_DIR=`echo /usr/src/linux* | sed -ne 's/ .*//gp'`; \ gcc -D__KERNEL__ -I$$_KERNEL_DIR/include -Wall \ -Wstrict-prototypes -Wno-trigraphs -O2 \ -fomit-frame-pointer -fno-strict-aliasing \ -fno-common -pipe -mpreferred-stack-boundary=2 \ -march=i686 -DMODULE -DMODVERSIONS \ -include $$_KERNEL_DIR/include/linux/modversions.h \ -DKBUILD_BASENAME=serial -DEXPORT_SYMTAB -c serial.c clean: /bin/rm -f $(TARGETS)