@@ -24,7 +24,7 @@ mandir = @mandir@
24
24
sysconfdir = @sysconfdir@
25
25
datadir = @datadir@
26
26
datarootdir = @datarootdir@
27
- docdir = $(datadir ) /doc/@PACKAGE_NAME@
27
+ docdir = $(datadir ) /doc/@PACKAGE_NAME@
28
28
examplesdir = $(datadir ) /@PACKAGE_NAME@/examples
29
29
30
30
# ###############################################################################
@@ -34,13 +34,12 @@ examplesdir = $(datadir)/@PACKAGE_NAME@/examples
34
34
CFLAGS = @CFLAGS@ -Wall -DVERSION=\"@PACKAGE_VERSION@\" -Dsysconfdir=\"$(sysconfdir ) \" @FFMPEG_CFLAGS@ @MMAL_CFLAGS@
35
35
LDFLAGS = @LDFLAGS@
36
36
LIBS = @LIBS@ @MMAL_LIBS@ @FFMPEG_LIBS@
37
- VIDEO_OBJ = @VIDEO@
38
37
OBJ = motion.o logger.o conf.o draw.o jpegutils.o \
39
- vloopback_motion2 .o $( VIDEO_OBJ ) \
38
+ video_loopback .o video_v4l2.o video_common.o video_bktr.o \
40
39
netcam.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o \
41
40
alg.o event.o picture.o rotate.o webhttpd.o \
42
41
stream.o md5.o netcam_rtsp.o ffmpeg.o \
43
- @MMAL_OBJ@
42
+ @MMAL_OBJ@ @SQLITE_OBJ@
44
43
SRC = $(OBJ:.o=.c )
45
44
DOC = CHANGELOG COPYING CREDITS README.md motion_guide.html mask1.png normal.jpg outputmotion1.jpg outputnormal1.jpg
46
45
EXAMPLES = *.conf motion.service
@@ -52,10 +51,10 @@ DEPEND_FILE = .depend
52
51
# ALL and PROGS build Motion and, possibly, Motion-control. #
53
52
# ###############################################################################
54
53
all : progs
55
- ifneq (,$(findstring freebsd,$(VIDEO_OBJ ) ) )
56
- @echo "Build complete, run \"gmake install\" to install Motion!"
57
- else
54
+ ifeq ("@DISTRO@","Linux")
58
55
@echo "Build complete, run \"make install\" to install Motion!"
56
+ else
57
+ @echo "Build complete, run \"gmake install\" to install Motion!"
59
58
endif
60
59
@echo
61
60
@@ -64,16 +63,16 @@ progs: pre-build-info $(PROGS)
64
63
# ###############################################################################
65
64
# PRE-BUILD-INFO outputs some general info before the build process starts. #
66
65
# ###############################################################################
67
- pre-build-info :
66
+ pre-build-info :
68
67
@echo " Welcome to the setup procedure for Motion, the motion detection daemon! If you get"
69
68
@echo " error messages during this procedure, please report them to the mailing list. The"
70
69
@echo " Motion Guide contains all information you should need to get Motion up and running."
71
70
@echo
72
71
@echo " Version: @PACKAGE_VERSION@"
73
- ifneq (,$(findstring freebsd,$(VIDEO_OBJ ) ) )
74
- @echo "Platform: FreeBSD"
75
- else
72
+ ifeq ("@DISTRO@","Linux")
76
73
@echo "Platform: Linux (if this is incorrect, please read README.FreeBSD)"
74
+ else
75
+ @echo "Platform: *BSD/Darwin"
77
76
endif
78
77
@echo
79
78
@@ -92,7 +91,7 @@ motion-objects: dep pre-mobject-info $(OBJ)
92
91
@echo " --------------------------------------------------------------------------------"
93
92
@echo " Motion object files compiled."
94
93
@echo
95
-
94
+
96
95
pre-mobject-info :
97
96
@echo " Compiling Motion object files..."
98
97
@echo " --------------------------------------------------------------------------------"
@@ -138,28 +137,28 @@ dev: distclean autotools all
138
137
139
138
autotools :
140
139
autoconf
141
- ./configure --with-developer-flags
140
+ ./configure --with-developer-flags
142
141
143
142
set-version :
144
143
autoconf
145
144
./configure --with-developer-flags
146
145
147
146
help :
148
147
@echo " --------------------------------------------------------------------------------"
149
- @echo " make Build motion from local copy in your computer"
148
+ @echo " make Build motion from local copy in your computer"
150
149
@echo " make current Build last version of motion from svn"
151
150
@echo " make dev Build motion with dev flags"
152
151
@echo " make dev-git Build motion with dev flags for git"
153
152
@echo " make build-commit Build last version of motion and prepare to commit to svn"
154
153
@echo " make build-commit-git Build last version of motion and prepare to commit to git"
155
- @echo " make clean Clean objects"
156
- @echo " make distclean Clean everything"
154
+ @echo " make clean Clean objects"
155
+ @echo " make distclean Clean everything"
157
156
@echo " make install Install binary , examples , docs and config files"
158
157
@echo " make uninstall Uninstall all installed files"
159
158
@echo " --------------------------------------------------------------------------------"
160
159
@echo
161
160
162
-
161
+
163
162
# ###############################################################################
164
163
# INSTALL installs all relevant files. #
165
164
# ###############################################################################
@@ -229,7 +228,7 @@ clean: pre-build-info
229
228
# ###############################################################################
230
229
# DIST restores the directory to distribution state. #
231
230
# ###############################################################################
232
- dist : distclean
231
+ dist : distclean
233
232
@chmod -R 644 *
234
233
@chmod 755 configure
235
234
@chmod 755 version.sh
0 commit comments