# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

# $Id: Imake.tmpl,v 1.2 91/12/13 18:41:29 ddr Exp $

# $Id: Imake.rules,v 1.4 92/03/19 15:29:46 ddr Exp $

TOP=/home/margaux/formel1/murthy/fs/CONSTR/V5.8/LIB/librt
CURRENT_DIR=./examples/trick
AR=ar
ARFLAGS=qc
CAMLC=camlc
CAMLLINK=camlc
CAMLLIBR=camllibr
CAMLMKTOP=camlmktop
CC=cc
ZDEP=$(TOP)/zdep/zdep
RTDIR=$(TOP)/rt
RTLIB=$(RTDIR)/librt.zo
XLIB=$(TOP)/Xlib/$(ARCH)/libx.a
CONFIG=$(TOP)/config

ARCH=.

BINDIR=/usr/local/bin
LIBDIR=/usr/local/lib/caml-light

ZFLAGS=-I $(RTDIR)
CFLAGS=-O -I$(LIBDIR)

all::

# (begin Imakefile)

# Imakefile,v 1.1 1993/02/12 16:20:08 murthy Exp

TARGET=$(ARCH)/trick.out
ZOFILES=trick.zo
ZFLAGS=-I $(RTDIR) -I ../cards
XLIB=$(TOP)/Xlib/$(ARCH)/libx.a

all:: $(TARGET)

$(TARGET): $(RTLIB) $(XLIB) $(ZOFILES)
	$(CAMLLINK) -custom $(RTLIB) ../cards/card_pix.zo $(ZOFILES) $(XLIB) -lX11 -o $@

clean::
	rm -f $(TARGET)

depend::
	rm -f Imakefile.bak
	cp Imakefile Imakefile.bak
	sed -n -e '1,/^### DO NOT DELETE THIS LINE/p' Imakefile.bak \
	> Imakefile
	$(ZDEP) $(ZFLAGS) *.ml >> Imakefile

### DO NOT DELETE THIS LINE
trick.zo: ../cards/card_pix.zi /usr/local/lib/caml-light/printexc.zi /usr/local/lib/caml-light/rt.zi /usr/local/lib/caml-light/sys.zi
trick.zi: trick.zo

# (end Imakefile)

clean scratch::
	rm -f *.run *.out *.zi *.zo *.o *.a *.bak *.BAK *~ *.log

install::

rminstall::

depend:: Makefile

save::
	-ci -q -m"- sauvegarde" RCS/*,v

restore::
	-co -q RCS/*,v

Makefile:: $(CONFIG)/Imake.tmpl $(CONFIG)/Imake.rules Imakefile
	rm -f Makefile.bak
	cp Makefile Makefile.bak
	imake -I$(CONFIG) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)

Makefiles::

deleteMakefiles::

.ml.zo:
	$(CAMLC) -c $(ZFLAGS) $<

.mli.zi:
	$(CAMLC) -c $(ZFLAGS) $<

.mlp.ml:
	/lib/cpp -P $< > $@

.mlip.mli:
	/lib/cpp -P $< > $@

.SUFFIXES: .ml .zo .mli .zi .mlp .mlip

