Advertisement
Guest User

Untitled

a guest
Feb 10th, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.46 KB | None | 0 0
  1. ##================================================================
  2. ##     Davicom Semiconductor Inc.   For DM9601 V0.00
  3. ##   --------------------------------------------------------
  4. ## Description:
  5. ##              Compile driver dm9601.c to dm9601.o
  6. ##
  7. ## Modification List:
  8. ## 09/05/2000   Fixed SMPFALGS wrong on smp & smp_mod
  9. ## 08/02/2000   Changed some description string & include file path
  10. ## 07/25/2000   Append smp_mod and changed some descriptions
  11. ## 01/25/2000   by Sten Wang
  12. ## 03/24/2009   Modifiy for Linux kernel 2.6.28
  13. ##================================================================
  14. # Comment/uncomment the following line to disable/enable debugging
  15. # DEBUG = y
  16.  
  17. # Add your debugging flag (or not) to CFLAGS
  18. #ifeq ($(DEBUG),y)
  19. #  DEBFLAGS = -O -g # "-O" is needed to expand inlines
  20. #else
  21. #  DEBFLAGS = -O2
  22. #endif
  23.  
  24. #CFLAGS += $(DEBFLAGS) -I$(LDDINCDIR)
  25.  
  26. #ifneq ($(KERNELRELEASE),)
  27. # call from kernel build system
  28.  
  29. obj-m   := dm9601.o
  30.  
  31. #else
  32. MODULE_INSTALDIR ?= /lib/modules/$(shell uname -r)/kernel/drivers/net/usb
  33. KERNELDIR ?= /lib/modules/$(shell uname -r)/build
  34. PWD       := $(shell pwd)
  35.  
  36. default:
  37.     $(MAKE) -C $(KERNELDIR) M=$(PWD)  
  38.  
  39. #endif
  40.  
  41.  
  42.  
  43. clean:
  44.     rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
  45.  
  46. #install:
  47.     modprobe -r dm9601
  48.     install -c -m 0644 dm9601.ko $(MODULE_INSTALDIR)
  49.     depmod -a -e
  50.  
  51. #depend .depend dep:
  52. #   $(CC) $(CFLAGS) -M *.c > .depend
  53.  
  54.  
  55. #ifeq (.depend,$(wildcard .depend))
  56. #include .depend
  57. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement