File: Makefile.in

package info (click to toggle)
motion 2.6.3-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 644 kB
  • ctags: 239
  • sloc: ansic: 2,565; makefile: 148; sh: 11
file content (57 lines) | stat: -rw-r--r-- 1,258 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 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 = @CC@
INSTALL = install

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
sysconfdir = @sysconfdir@

VERSION=@VERSION@

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

CFLAGS = @CFLAGS@ -Wall -O2 -DVERSION=\"$(VERSION)\"
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
OBJ = motion.o conf.o draw.o video.o track.o alg.o yuv.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