2019-05-24 17:40:13 +02:00
|
|
|
|
|
|
|
|
2019-12-13 18:18:07 +01:00
|
|
|
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
|
2019-05-24 17:40:13 +02:00
|
|
|
DEPS = ../floatimg.h ../libfloatimg.a Makefile
|
|
|
|
|
2020-01-22 22:43:16 +01:00
|
|
|
all: grabvidseq t video-infos
|
2019-06-30 17:47:17 +02:00
|
|
|
|
2019-07-02 19:35:08 +02:00
|
|
|
t: t.c Makefile ${DEPS} funcs.o v4l2_pr_structs.o
|
|
|
|
gcc ${COPT} $< funcs.o v4l2_pr_structs.o ../libfloatimg.a -o $@
|
2019-05-24 17:40:13 +02:00
|
|
|
|
2019-06-05 10:57:39 +02:00
|
|
|
funcs.o: funcs.c funcs.h Makefile
|
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2019-08-10 18:37:52 +02:00
|
|
|
rgb2fimg.o: rgb2fimg.c funcs.h Makefile
|
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2019-07-02 19:35:08 +02:00
|
|
|
v4l2_pr_structs.o: v4l2_pr_structs.c v4l2_pr_structs.h Makefile
|
|
|
|
gcc ${COPT} -c $<
|
|
|
|
|
2019-09-17 13:14:33 +02:00
|
|
|
grabvidseq: grabvidseq.c ${DEPS} rgb2fimg.o
|
2020-01-28 22:12:12 +01:00
|
|
|
gcc ${COPT} $< rgb2fimg.o ../libfloatimg.a -lpnglite -lz -lm -lv4l2 -o $@
|
2019-07-21 13:36:14 +02:00
|
|
|
|
|
|
|
video-infos: video-infos.c Makefile funcs.o v4l2_pr_structs.o
|
2020-01-28 22:12:12 +01:00
|
|
|
gcc -Wall -g $< funcs.o v4l2_pr_structs.o ../libfloatimg.a -o $@
|
2019-07-21 13:36:14 +02:00
|
|
|
|
|
|
|
|
2019-05-25 16:16:24 +02:00
|
|
|
# ---------------
|
|
|
|
# external things
|
2019-05-25 11:56:56 +02:00
|
|
|
|
|
|
|
capture: capture.c Makefile
|
2019-05-27 14:47:32 +02:00
|
|
|
gcc -Wall -g $< -o $@
|
|
|
|
|
|
|
|
|
2019-05-25 11:56:56 +02:00
|
|
|
|