Makefile
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #
  2. # Makefile for the linux smb-filesystem routines.
  3. #
  4. # Note! Dependencies are done automagically by 'make dep', which also
  5. # removes any old dependencies. DON'T put your own dependencies here
  6. # unless it's something special (ie not a .c file).
  7. #
  8. # Note 2! The CFLAGS definitions are now in the main makefile...
  9. O_TARGET := smbfs.o
  10. obj-y   := proc.o dir.o cache.o sock.o inode.o file.o ioctl.o getopt.o
  11. obj-m   := $(O_TARGET)
  12. # If you want debugging output, you may add these flags to the EXTRA_CFLAGS
  13. # SMBFS_PARANOIA should normally be enabled.
  14. EXTRA_CFLAGS += -DSMBFS_PARANOIA
  15. #EXTRA_CFLAGS += -DSMBFS_DEBUG
  16. #EXTRA_CFLAGS += -DSMBFS_DEBUG_VERBOSE
  17. #EXTRA_CFLAGS += -DDEBUG_SMB_MALLOC
  18. #EXTRA_CFLAGS += -DDEBUG_SMB_TIMESTAMP
  19. #EXTRA_CFLAGS += -Werror
  20. include $(TOPDIR)/Rules.make
  21. #
  22. # Maintainer rules
  23. #
  24. # getopt.c not included. It is intentionally separate
  25. SRC = proc.c dir.c cache.c sock.c inode.c file.c ioctl.c
  26. proto:
  27. -rm -f proto.h
  28. @echo >  proto2.h "/*"
  29. @echo >> proto2.h " *  Autogenerated with cproto on: " `date`
  30. @echo >> proto2.h " */"
  31. @echo >> proto2.h ""
  32. cproto -E "gcc -E" -e -v -I $(TOPDIR)/include -DMAKING_PROTO -D__KERNEL__ $(SRC) >> proto2.h
  33. mv proto2.h proto.h