home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / f / ftp-102.zip / ftape-1.02 / driver / Makefile < prev    next >
Makefile  |  1992-10-12  |  3KB  |  112 lines

  1. # Makefile for floppytape driver.
  2. # Copyright (C) 1992 David L. Brown, Jr.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; see the file COPYING.  If not, write to
  16. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  17. #
  18. # Makefile,v 1.13 1992/10/13 02:22:18 dbrown Exp
  19. #
  20. # Makefile,v
  21. # Revision 1.13  1992/10/13  02:22:18  dbrown
  22. # Modified for use in ftape package.
  23. #
  24. # Revision 1.12  1992/10/11  18:29:41  dbrown
  25. # Turn on optimizing.
  26. #
  27. # Revision 1.11  1992/10/10  06:15:06  dbrown
  28. # Force to COLORADO or MOUNTAIN drive type.
  29. #
  30. # Some fixes to write.
  31. #
  32. # Revision 1.10  1992/10/05  04:33:43  dbrown
  33. # Add seek test to tar list.
  34. #
  35. # Revision 1.9  1992/10/04  23:08:57  dbrown
  36. # Added seek test.
  37. #
  38. # Revision 1.8  1992/10/04  21:44:57  dbrown
  39. # Added all .h files to TAR_FILES.
  40. #
  41. # Revision 1.7  1992/10/03  23:56:11  dbrown
  42. # Moved enough of the old driver into the new to get drive status, and
  43. # seek the tape and the tape head.
  44. #
  45. # Revision 1.6  1992/09/12  23:16:42  dbrown
  46. # Added tape.c.
  47. #
  48. # Revision 1.5  1992/09/07  16:44:58  dbrown
  49. # Added t1
  50. #
  51. # Revision 1.4  1992/09/07  14:46:20  dbrown
  52. # Added thread code.
  53. #
  54. # Revision 1.3  1992/07/18  07:04:02  dbrown
  55. # Added stub include files.
  56. #
  57. # Revision 1.2  1992/07/18  06:36:38  dbrown
  58. # Fixed makefile to allow compilation.  Includes distant directory junk
  59. # for necessary header files.
  60. #
  61. # Revision 1.1  1992/07/18  06:22:22  dbrown
  62. # Added new files.
  63. #
  64.  
  65. include ../version.mk
  66.  
  67. FAKE_I = -Iinclude
  68. CFLAGS = $(FAKE_I) -O2 -gstabs -DKERNEL -DLOADABLE $(CX) -DCOLORADO
  69.  
  70. OBJS = kernel-interface.o thread.o tape.o fdtape.o
  71.  
  72. TAR_FILES = Makefile version.mk kernel-interface.c thread.c tape.c \
  73.     fdtape.c userft.c ftape.dspec \
  74.     thread.h kernel-interface.h fdtape-io.h ftape-regs.h \
  75.     SEEK_TEST
  76. TAR_DIRS = include
  77.  
  78. all: _ftape.o userft
  79. _ftape.o: $(OBJS)
  80.     ld -r -o _ftape.o $(OBJS)
  81.  
  82. testlink: _ftape.o
  83.     ld -A /vmunix _ftape.o -o testlink
  84.     rm testlink
  85.  
  86. t1: t1.c
  87.     $(CC) -O2 -gstabs $^ -o $@
  88.  
  89. userft: userft.c
  90.     $(CC) -O2 -gstabs $^ -o $@
  91.  
  92. tar:
  93.     rm -rf ftape-$(VERSION)
  94.     mkdir ftape-$(VERSION)
  95.     cp -p $(TAR_FILES) ftape-$(VERSION)
  96.     -tar -cf - $(TAR_DIRS) \
  97.       | (cd ftape-$(VERSION); tar -xvvf -)
  98.     find ftape-$(VERSION) -type d -name CVS -print \
  99.       | xargs rm -r
  100.     tar -czvvf ftape-$(VERSION).tar.Z ftape-$(VERSION)
  101.     rm -rf ftape-$(VERSION)
  102.  
  103. seek-test: userft
  104.     rm -f SEEK_RESULT
  105.     userft /dev/ftape yes < SEEK_TEST 2>&1 | tee SEEK_RESULT
  106.  
  107. %.s: %.c
  108.     $(CC) -S $(CFLAGS) $^ -o $@
  109.  
  110. fdtape.o: ftape-regs.h fdtape-io.h
  111. tape.o: thread.h
  112.