-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (31 loc) · 1.19 KB
/
Makefile
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
# Makefile for fswebcam
# [25/12/2009]
SHELL = /bin/sh
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
mandir = ${datarootdir}/man
datarootdir = ${prefix}/share
CC = gcc
CFLAGS = -g -O2 -DHAVE_CONFIG_H -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads
LDFLAGS = -lgd -L/opt/vc/lib -lGLESv2 -lEGL -lbcm_host -lpthread -ljpeg
OBJS = fswebcam.o log.o effects.o parse.o src.o src_test.o src_raw.o src_file.o src_v4l1.o src_v4l2.o
OBJS += dec_rgb.o dec_yuv.o dec_grey.o dec_bayer.o dec_jpeg.o dec_png.o
OBJS += dec_s561.o
OBJS += mirror.o
all: fswebcam fswebcam.1.gz
install: all
mkdir -p ${DESTDIR}${bindir}
mkdir -p ${DESTDIR}${mandir}/man1
install -m 755 fswebcam ${DESTDIR}${bindir}
install -m 644 fswebcam.1.gz ${DESTDIR}${mandir}/man1
fswebcam: $(OBJS)
$(CC) -o fswebcam $(OBJS) ../openvg/openvg-master/libshapes.o ../openvg/openvg-master/oglinit.o $(LDFLAGS)
.c.o:
${CC} ${CFLAGS} -c $< -o $@
fswebcam.1.gz: fswebcam.1
gzip -c --best fswebcam.1 > fswebcam.1.gz
clean:
rm -f core* *.o fswebcam fswebcam.1.gz
distclean: clean
rm -rf config.h *.cache config.log config.status Makefile *.jp*g *.png *~