#
#  Makefile for cutlines & text2latex.
#  
#
#  @(#)Makefile 1.0 95/06/07
#
# Copyright (c) Mikael Cam.
#
#
#  Permission is given to distribute these sources, as long as the
#  copyright messages are not removed, and no monies are exchanged.
#
#  No responsibility is taken for any errors inherent either
#  to the comments or the code of this program, but if reported
#  to me then an attempt will be made to fix them.
#
#  NOTE: The following definitions are expected to be overridden by the
#        calling Makefile in the parent directory.
#
#---------------------------------------------------------------------
#  Compilation flags and standard macro definitions.
#

CCOMP	 = -O
CC       = gcc
CCFLAGS  = $(CCOMP)
MIMEPBINDIR = /usr/local/bin

#=================================================================

.KEEP_STATE:

binaries: cutlines text2latex

cutlines:
	$(CC) $(CFLAGS) -o cutlines cutlines.c

text2latex:	
	$(CC) $(CFLAGS) -o text2latex text2latex.c


SHELL = /bin/sh

install:
	mv text2latex $(MIMEPBINDIR)/text2latex
	mv cutlines   $(MIMEPBINDIR)/cutlines
clean:


create:    SCCS
	-sccs create $(SRCS) $(HDRS) $(MIMEPAGES)

lint:
	lint $(CDEFS) $(SRCS)

saber:
	#load $(CDEFS) $(SRCS) $(LDFLAGS) $(LIBS)

SCCS:
	mkdir SCCS
	chmod 755 SCCS
