# Generated automatically from Makefile.in by configure.
include ../../Makefile.examples

CAMLC=$(CAMLC_LABEL)
CAMLOPT=$(CAMLOPT_LABEL)

# include $(LABLGTKDIR)/config.make

LABLGTKOBJS= lablgtk.cma
LABLGTKCOMPFLAGS= -I $(LABLGTKDIR) $(COMPFLAGS_LABLGTKIMG)
LABLGTKLINKFLAGS= $(LABLGTKOBJS) -cclib "-L$(LABLGTKDIR) -llablgtk $(GTKLIBS)"

COMPFLAGS= $(COMPFLAGS_CAMLIMAGES) $(LABLGTKCOMPFLAGS)
LINKFLAGS= $(COMPFLAGS) $(LINKFLAGS_CAMLIMAGES) $(LABLGTKLINKFLAGS) $(WITH_LABLGTKIMAGE) $(WITH_UNIX)

all: gifanim.byte
opt: gifanim

SRCS= guienv.ml usleep.ml gifanim.ml

gifanim.byte: $(SRCS:.ml=.cmo)
	$(CAMLC) -o $@ $(DLLPATHS) $(LINKFLAGS) $(CSRCS:.c=.o) $(SRCS:.ml=.cmo)

gifanim: $(SRCS:.ml=.cmx)
	$(CAMLOPT) -o $@ $(LINKFLAGS:.cma=.cmxa) $(CSRCS:.c=.o) $(SRCS:.ml=.cmx)

clean::
	rm -f gifanim gifanim.byte

.SUFFIXES:
.SUFFIXES: .ml .mli .cmo .cmi .cmx .mll .mly .c .o

.ml.cmo:
	$(CAMLC) -c $(COMPFLAGS) $<

.mli.cmi:
	$(CAMLC) -c $(COMPFLAGS) $<

.ml.cmx:
	$(CAMLOPT) -c $(COMPFLAGS) $<

.mll.cmo:
	$(CAMLLEX) $<
	$(CAMLC) -c $(COMPFLAGS) $*.ml

.mll.cmx:
	$(CAMLLEX) $<
	$(CAMLOPT) -c $(COMPFLAGS) $*.ml

.mly.cmo:
	$(CAMLYACC) $<
	$(CAMLC) -c $(COMPFLAGS) $*.mli
	$(CAMLC) -c $(COMPFLAGS) $*.ml

.mly.cmx:
	$(CAMLYACC) $<
	$(CAMLOPT) -c $(COMPFLAGS) $*.mli
	$(CAMLOPT) -c $(COMPFLAGS) $*.ml

.mly.cmi:
	$(CAMLYACC) $<
	$(CAMLC) -c $(COMPFLAGS) $*.mli

.mll.ml:
	$(CAMLLEX) $<

.mly.ml:
	$(CAMLYACC) $<

clean::
	rm -f *.cm[iox] *~ .*~ *.o

depend:
	$(CAMLDEP) *.mli *.ml > .depend

.c.o:
	$(CAMLC) -c $< 

include .depend
