# Generated automatically from Makefile.in by configure.
# Make file for motion
#
# Copyright 2000 by Jeroen Vreeken
# This program is published under the GNU public license version 2.0 or later
# Read the file COPYING for more info.
#
CC = gcc
INSTALL = install

prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
mandir = ${prefix}/man
sysconfdir = ${prefix}/etc

VERSION=2.6.2

docdir = $(prefix)/doc/motion-$(VERSION)
examplesdir = $(prefix)/examples/motion-$(VERSION)

CFLAGS = -g -O2 -Wall -O2 -DVERSION=\"$(VERSION)\"
LDFLAGS = 
LIBS = -ljpeg
OBJ = motion.o conf.o draw.o video.o track.o alg.o
DOC= CHANGELOG COPYING CREDITS INSTALL README TODO
EXAMPLES= motion.conf*

all: motion

motion: $(OBJ)
	$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)

install:
	mkdir -p $(bindir)
	mkdir -p $(mandir)/man1
	mkdir -p $(sysconfdir)
	mkdir -p $(docdir)
	mkdir -p $(examplesdir)
	$(INSTALL) motion $(bindir)
	$(INSTALL) motion.1 $(mandir)/man1
	$(INSTALL) $(DOC) $(docdir)
	$(INSTALL) $(EXAMPLES) $(examplesdir)
	$(INSTALL) motion.conf $(sysconfdir)

uninstall:
	rm -r $(bindir)/motion
	rm -r $(mandir)/man1/motion.1
	rm -r $(docdir)
	rm -r $(examplesdir)
	rm -r $(sysconfdir)/motion.conf

 
clean:
	rm -f *~ *.jpg *.o motion

distclean: clean
	rm -f config.status config.log config.cache Makefile
