# @(#)Makefile	1.2    7/29/94
#
# DEFS can contain the following:
# -DRE_PATTERNS if your system supports re_comp and re_exec and you want to
#               use them in thread
# -DCOMPRESS    if your system supports compressed files and you want to be
#               able to search through compressed digest files
# -DGNU_ZIP     if your system supports the GNU compression programs gzip
#               and gunzip (this is only valid if COMPRESS is also defined)
# -DXOPEN       if you want to use the X/Open curses package instead of the
#               "standard" curses package.

DEFS = -DRE_PATTERNS -DCOMPRESS -DGNU_ZIP -DXOPEN

CFLAGS = ${DEFS}

#---------------------------------------------------------------------
# Pick one of these depending upon your system.
# Change, expand, etc. as needed.

# SUN, Ultrix, XENIX
#LIBS = -lcurses -ltermcap

# Ultrix with X/Open curses package (see XOPEN define above)
LIBS = -lcursesX

# HP
#LIBS = -lcurses
#---------------------------------------------------------------------

SOURCES = cthread.h cthread.c util.c

cthread: cthread.h cthread.o util.o
	$(CC) ${CFLAGS} -o cthread cthread.o util.o ${LIBS}

util.o: util.c cthread.h

lint:
	lint ${DEFS} cthread.c util.c ${LIBS}

source: $(SOURCES)
$(SOURCES):
	sccs get $@
