home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
DOOG
/
CBASE09.ZIP
/
BTREE.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1989-08-31
|
3KB
|
98 lines
# Copyright (c) 1989 Citadel
# All Rights Reserved
# makefile 1.1 - 89/07/03
# btree library makefile
LIB = btree
LIBDIR = /usr/lib
INCDIR = /usr/include
BINDIR = /usr/bin
CFLAGS = -O
LINT = lint -p
MAN = $(LIB).man
FILES = makefile btree.h btree_.h\
btclose.c btcreate.c btcursor.c btdelcur.c btdelete.c btfirst.c\
btgetcur.c btgetk.c btgetlck.c btinsert.c btkeycnt.c btkeysiz.c\
btlast.c btlock.c btnext.c btopen.c btprev.c btsearch.c\
btsetbuf.c btsetcur.c btsetvbu.c btsync.c\
btops.c dgops.c kyops.c ndops.c\
bta.c btdump.c btlist.c
MANFILES=btree.h\
btclose.c btcreate.c btcursor.c btdelcur.c btdelete.c btfirst.c\
btgetcur.c btgetk.c btgetlck.c btinsert.c btkeycnt.c btkeysiz.c\
btlast.c btlock.c btnext.c btopen.c btprev.c btsearch.c\
btsetbuf.c btsetcur.c btsetvbu.c btsync.c
SOURCES=btclose.c btcreate.c btcursor.c btdelcur.c btdelete.c btfirst.c\
btgetcur.c btgetk.c btgetlck.c btinsert.c btkeycnt.c btkeysiz.c\
btlast.c btlock.c btnext.c btopen.c btprev.c btsearch.c\
btsetbuf.c btsetcur.c btsetvbu.c btsync.c\
btops.c dgops.c kyops.c ndops.c
OBJECTS=btclose.o btcreate.o btcursor.o btdelcur.o btdelete.o btfirst.o\
btgetcur.o btgetk.o btgetlck.o btinsert.o btkeycnt.o btkeysiz.o\
btlast.o btlock.o btnext.o btopen.o btprev.o btsearch.o\
btsetbuf.o btsetcur.o btsetvbu.o btsync.o\
btops.o dgops.o kyops.o ndops.o
MODULES=$(LIB)(btclose.o) $(LIB)(btcreate.o) $(LIB)(btcursor.o)\
$(LIB)(btdelcur.o) $(LIB)(btdelete.o) $(LIB)(btfirst.o)\
$(LIB)(btgetcur.o) $(LIB)(btgetk.o) $(LIB)(btgetlck.o)\
$(LIB)(btinsert.o) $(LIB)(btkeycnt.o) $(LIB)(btkeysiz.o)\
$(LIB)(btlast.o) $(LIB)(btlock.o) $(LIB)(btnext.o)\
$(LIB)(btopen.o) $(LIB)(btprev.o) $(LIB)(btsearch.o)\
$(LIB)(btsetbuf.o) $(LIB)(btsetcur.o) $(LIB)(btsetvbu.o)\
$(LIB)(btsync.o)\
$(LIB)(btops.o) $(LIB)(dgops.o) $(LIB)(kyops.o)\
$(LIB)(ndops.o)
$(LIB): $(MODULES)
@echo $(LIB) up-to-date.
$(MODULES): btree_.h
$(SOURCES): btree_.h
btree_.h: btree.h
util: bta btdump btlist
bta: $$@.c $(LIBDIR)/lib$(LIB).a
cc -O $@.c -l$(LIB) -lblkio -o $@
btdump: $$@.c $(LIBDIR)/lib$(LIB).a
cc -O $@.c -l$(LIB) -lblkio -o $@
btlist: $$@.c $(LIBDIR)/lib$(LIB).a
cc -O $@.c -l$(LIB) -lblkio -o $@
install:
@if test -s $(LIBDIR)/lib$(LIB).a = 0; \
then \
echo $(LIBDIR)/lib$(LIB).a exists\.; \
echo -n "Do you wish to copy over it? "; \
read response; \
case $$response in \
y | Y | yes | YES | Yes) ;; \
*) exit 1 ;; \
esac \
fi; \
cp $(LIB) $(LIBDIR)/lib$(LIB).a
@if test -s $(INCDIR)/btree.h = 0; \
then \
echo $(INCDIR)/btree.h exists\.; \
echo -n "Do you wish to copy over it? "; \
read response; \
case $$response in \
y | Y | yes | YES | Yes) ;; \
*) exit 1 ;; \
esac \
fi; \
cp btree.h $(INCDIR)
lint:
$(LINT) $(SOURCES)
$(MAN): $(MANFILES)
cat $(MANFILES) | manx > $(MAN)