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 >
Wrap
Makefile
|
1992-10-12
|
3KB
|
112 lines
# Makefile for floppytape driver.
# Copyright (C) 1992 David L. Brown, Jr.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Makefile,v 1.13 1992/10/13 02:22:18 dbrown Exp
#
# Makefile,v
# Revision 1.13 1992/10/13 02:22:18 dbrown
# Modified for use in ftape package.
#
# Revision 1.12 1992/10/11 18:29:41 dbrown
# Turn on optimizing.
#
# Revision 1.11 1992/10/10 06:15:06 dbrown
# Force to COLORADO or MOUNTAIN drive type.
#
# Some fixes to write.
#
# Revision 1.10 1992/10/05 04:33:43 dbrown
# Add seek test to tar list.
#
# Revision 1.9 1992/10/04 23:08:57 dbrown
# Added seek test.
#
# Revision 1.8 1992/10/04 21:44:57 dbrown
# Added all .h files to TAR_FILES.
#
# Revision 1.7 1992/10/03 23:56:11 dbrown
# Moved enough of the old driver into the new to get drive status, and
# seek the tape and the tape head.
#
# Revision 1.6 1992/09/12 23:16:42 dbrown
# Added tape.c.
#
# Revision 1.5 1992/09/07 16:44:58 dbrown
# Added t1
#
# Revision 1.4 1992/09/07 14:46:20 dbrown
# Added thread code.
#
# Revision 1.3 1992/07/18 07:04:02 dbrown
# Added stub include files.
#
# Revision 1.2 1992/07/18 06:36:38 dbrown
# Fixed makefile to allow compilation. Includes distant directory junk
# for necessary header files.
#
# Revision 1.1 1992/07/18 06:22:22 dbrown
# Added new files.
#
include ../version.mk
FAKE_I = -Iinclude
CFLAGS = $(FAKE_I) -O2 -gstabs -DKERNEL -DLOADABLE $(CX) -DCOLORADO
OBJS = kernel-interface.o thread.o tape.o fdtape.o
TAR_FILES = Makefile version.mk kernel-interface.c thread.c tape.c \
fdtape.c userft.c ftape.dspec \
thread.h kernel-interface.h fdtape-io.h ftape-regs.h \
SEEK_TEST
TAR_DIRS = include
all: _ftape.o userft
_ftape.o: $(OBJS)
ld -r -o _ftape.o $(OBJS)
testlink: _ftape.o
ld -A /vmunix _ftape.o -o testlink
rm testlink
t1: t1.c
$(CC) -O2 -gstabs $^ -o $@
userft: userft.c
$(CC) -O2 -gstabs $^ -o $@
tar:
rm -rf ftape-$(VERSION)
mkdir ftape-$(VERSION)
cp -p $(TAR_FILES) ftape-$(VERSION)
-tar -cf - $(TAR_DIRS) \
| (cd ftape-$(VERSION); tar -xvvf -)
find ftape-$(VERSION) -type d -name CVS -print \
| xargs rm -r
tar -czvvf ftape-$(VERSION).tar.Z ftape-$(VERSION)
rm -rf ftape-$(VERSION)
seek-test: userft
rm -f SEEK_RESULT
userft /dev/ftape yes < SEEK_TEST 2>&1 | tee SEEK_RESULT
%.s: %.c
$(CC) -S $(CFLAGS) $^ -o $@
fdtape.o: ftape-regs.h fdtape-io.h
tape.o: thread.h