home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / fs / Makefile < prev    next >
Encoding:
Makefile  |  1994-06-05  |  1.6 KB  |  77 lines

  1. # Makefile for 680x0 Linux filesystem source directory
  2. #
  3. # Copyright 1993 by Hamish Macdonald
  4. #
  5. # This file is subject to the terms and conditions of the GNU General Public
  6. # License.  See the file "README.legal" in the main directory of this archive
  7. # for more details.
  8.  
  9. include ../.config
  10. include ../MakeVars
  11.  
  12. SUBDIRS    = minix ext ext2 msdos proc isofs nfs xiafs hpfs affs
  13.  
  14. ifdef CONFIG_MINIX_FS
  15. FS_SUBDIRS := $(FS_SUBDIRS) minix
  16. endif
  17. ifdef CONFIG_EXT_FS
  18. FS_SUBDIRS := $(FS_SUBDIRS) ext
  19. endif
  20. ifdef CONFIG_EXT2_FS
  21. FS_SUBDIRS := $(FS_SUBDIRS) ext2
  22. endif
  23. ifdef CONFIG_MSDOS_FS
  24. FS_SUBDIRS := $(FS_SUBDIRS) msdos
  25. endif
  26. ifdef CONFIG_PROC_FS
  27. FS_SUBDIRS := $(FS_SUBDIRS) proc
  28. endif
  29. ifdef CONFIG_ISO9660_FS
  30. FS_SUBDIRS := $(FS_SUBDIRS) isofs
  31. endif
  32. ifdef CONFIG_NFS_FS
  33. FS_SUBDIRS := $(FS_SUBDIRS) nfs
  34. endif
  35. ifdef CONFIG_XIA_FS
  36. FS_SUBDIRS := $(FS_SUBDIRS) xiafs
  37. endif
  38. ifdef CONFIG_HPFS_FS
  39. FS_SUBDIRS := $(FS_SUBDIRS) hpfs
  40. endif
  41. ifdef CONFIG_AFFS_FS
  42. FS_SUBDIRS := $(FS_SUBDIRS) affs
  43. endif
  44.  
  45. ifdef CONFIG_BINFMT_ELF
  46. BINFMTS := $(BINFMTS) binfmt_elf.o
  47. endif
  48.  
  49. OBJS=    open.o read_write.o inode.o devices.o file_table.o buffer.o super.o \
  50.     block_dev.o stat.o exec.o pipe.o namei.o fcntl.o ioctl.o \
  51.     select.o fifo.o locks.o filesystems.o $(BINFMTS)
  52.  
  53. all: fs.o filesystems.a
  54.  
  55. fs.o: $(OBJS)
  56.     $(LD) -r -o fs.o $(OBJS)
  57.  
  58. filesystems.a: dummy
  59.     $(RM) filesystems.a
  60.     for i in $(FS_SUBDIRS); do \
  61.       test ! -d $$i || \
  62.         { $(MAKE) -C $$i; $(AR) rcs filesystems.a $$i/$$i.o; }; done
  63.  
  64. dep:
  65.     $(CPP) -M $(INCFLAGS) *.c > .depend
  66.     for i in $(SUBDIRS); do \
  67.       test ! -d $$i || $(MAKE) -C $$i dep; done
  68.  
  69. dummy:
  70.  
  71. #
  72. # include a dependency file if one exists
  73. #
  74. ifeq (.depend,$(wildcard .depend))
  75. include .depend
  76. endif
  77.