view dmx_usb_module/Makefile @ 929:c20c2eea6fce

another hack to stop graphfile from thinking its own new empty file means it should delete all the statements in that context Ignore-this: 94639afbbe8d3a0abd8a06e16922394f
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 11 Jun 2013 20:25:02 +0000
parents 2b2ad8e7cb9f
children
line wrap: on
line source

#
# $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 -Wall 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
	rm -f Module.markers  modules.order  Module.symvers