#
# Makefile for lucy library
#
# $Author: brlewis $
# $Source$
# $Header$
#
# Copyright (c) 1991, Massachusetts Institute of Technology
# For copying and distribution information, see the file
# "mit-copyright.h".
#

CC = gcc
SRC=global.c luc_init.c luc_fill_nb.c luc_fill_mtg.c luc_trn_info.c \
	luc_reset_mtg.c luc_next.c dsc_wishlist.c luc_ask.c
OBJ=global.o luc_init.o luc_fill_nb.o luc_fill_mtg.o luc_trn_info.o \
	luc_reset_mtg.o luc_next.o dsc_wishlist.o luc_ask.o
LIB=-L/mit/discuss/`machtype`/lib -ldsk -lusp -lss -lcom_err -lkrb -ldes 
# LIB=-L/mit/discuss/`machtype`/lib -ldsk -lss -lcom_err -lkrb -ldes
INC=../../../include -I/mit/discuss/source/include 
CFLAGS=-g $(INC)

.SUFFIXES:	.ct .c
.ct.c:
	mk_cmds $*.ct


all: liblucy.a

liblucy.a: $(OBJ)
	ar cr liblucy.a $(OBJ)
	ranlib liblucy.a

clean:
	rm -f liblucy.a *~ *.o ctlucy.c

ctlucy.o:	ctlucy.c

saber:
	saber $(INC) $(SRC) $(LIB)

# Need /mit/watchmaker/$bindir in path before this will work
ptypes.h: $(SRC)
	mkptypes $(SRC) > ptypes.h
	rm -f ../include/liblucy-ptypes.h
	cp ptypes.h ../include/liblucy-ptypes.h





	
