#
#  Ertf2latex the enriched/text to LaTeX converter.
#  
#
#  @(#)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.
#
#---------------------------------------------------------------------
#
#  Default locations where mp files will be installed.
#  You might wish to alter these values.
#
MPPATH     = /usr/local
MPBINDIR   = $(MPPATH)/bin
MPLIBDIR   = $(MPPATH)/lib/mp
MPMANDIR   = $(MPPATH)/man/man$(MPMANSECT)
MPSRC      = ../../mp
OPTSRC     = ../../common
MPMANSECT  = l
MIMEPBINDIR = $(MPBINDIR)
#---------------------------------------------------------------------
#  Compilation flags and standard macro definitions.
#

CCOMP	 = -O
CC       = gcc
CFLAGS  = $(CCOMP)

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

.KEEP_STATE:

SRCS     = comliste.c ertf2latex.c
OBJS     = comliste.o ertf2latex.o
HDRS     = comliste.h ertf2latex.h


mimep:	$(OBJS) 
	$(CC) $(CFLAGS) -o ertf2latex $(OBJS)

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


SHELL = /bin/sh

install:
	mv ertf2latex $(MIMEPBINDIR)/ertf2latex

clean:
	/bin/rm *.o

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

lint:
	lint $(CDEFS) $(SRCS)

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

SCCS:
	mkdir SCCS
	chmod 755 SCCS




