Mercurial > code > home > repos > light9
diff dmx_usb_module/Makefile @ 355:4e60444605f6
add dmx_usb_module
author | drewp@bigasterisk.com |
---|---|
date | Wed, 13 Jun 2007 06:01:22 +0000 |
parents | |
children | 2b2ad8e7cb9f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dmx_usb_module/Makefile Wed Jun 13 06:01:22 2007 +0000 @@ -0,0 +1,29 @@ +# +# $Id: Makefile 38 2004-09-11 11:15:09Z erwin $ +# + +ifneq ($(KERNELRELEASE),) + +obj-m := dmx_usb.o + +else + +KDIR := /lib/modules/$(shell uname -r)/build +PWD := $(shell pwd) + +default: + $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules + gcc -O2 -pipe dmx_usb_test.c -o dmx_usb_test + +endif + +clean: + rm -f *.o *.ko + rm -f dmx_usb_test + rm -f dmx_usb.mod.c + rm -f .dmx_usb.* + rm -rf .tmp_versions + + +drew: + gcc dmx_usb.c -o dmx_usb.o -I/usr/src/linux-source-2.6.15/include \ No newline at end of file