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

  1. # Makefile for 680x0 Linux blk_drv 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 ../../MakeVars
  10.  
  11. SUBDIRS = scsi
  12.  
  13. OBJS := ll_rw_blk.o  floppy.o ramdisk.o genhd.o
  14. SRCS := ll_rw_blk.c  floppy.c ramdisk.c genhd.c
  15.  
  16.  
  17. ifdef CONFIG_CDU31A
  18. OBJS := $(OBJS) cdu31a.o
  19. SRCS := $(SRCS) cdu31a.c
  20. endif
  21.  
  22. ifdef CONFIG_MCD
  23. OBJS := $(OBJS) mcd.o
  24. SRCS := $(SRCS) mcd.c
  25. endif
  26.  
  27. ifdef CONFIG_BLK_DEV_HD
  28. OBJS := $(OBJS) hd.o
  29. SRCS := $(SRCS) hd.c
  30. endif
  31.  
  32. ifdef CONFIG_AMIGA_IDE
  33. OBJS := $(OBJS) amihd.o
  34. SRCS := $(SRCS) amihd.c
  35. endif
  36.  
  37. ifdef CONFIG_ATARI_FALCON_IDE
  38. OBJS := $(OBJS) falhd.o
  39. SRCS := $(SRCS) falhd.c
  40. endif
  41.  
  42. ifdef CONFIG_BLK_DEV_XD
  43. OBJS := $(OBJS) xd.o
  44. SRCS := $(SRCS) xd.c
  45. endif
  46.   
  47. all: block.a
  48.  
  49. block.a: $(OBJS)
  50.     rm -f block.a
  51.     $(AR) rcs block.a $(OBJS)
  52.     sync
  53.  
  54. dep:
  55.     $(CPP) -M $(SRCS) > .depend
  56.  
  57. #
  58. # include a dependency file if one exists
  59. #
  60. ifeq (.depend,$(wildcard .depend))
  61. include .depend
  62. endif
  63.