forked from tTh/FloatImg
39 lines
969 B
Makefile
39 lines
969 B
Makefile
|
|
|
|
COPT = -Wall -fpic -g -no-pie -DDEBUG_LEVEL=0
|
|
DEPS = ../floatimg.h ../libfloatimg.a Makefile
|
|
LOBJ = funcs.o v4l2_pr_structs.o
|
|
|
|
all: grabvidseq t video-infos nc-camcontrol
|
|
|
|
t: t.c Makefile ${DEPS} funcs.o v4l2_pr_structs.o
|
|
gcc ${COPT} $< funcs.o v4l2_pr_structs.o ../libfloatimg.a -o $@
|
|
|
|
funcs.o: funcs.c funcs.h Makefile
|
|
gcc ${COPT} -c $<
|
|
|
|
rgb2fimg.o: rgb2fimg.c funcs.h Makefile
|
|
gcc ${COPT} -c $<
|
|
|
|
v4l2_pr_structs.o: v4l2_pr_structs.c v4l2_pr_structs.h Makefile
|
|
gcc ${COPT} -c $<
|
|
|
|
grabvidseq: grabvidseq.c ${DEPS} rgb2fimg.o
|
|
gcc ${COPT} $< rgb2fimg.o ../libfloatimg.a -lpnglite -lz -lm \
|
|
-lcfitsio -lv4l2 -ltiff -o $@
|
|
|
|
video-infos: video-infos.c Makefile funcs.o v4l2_pr_structs.o
|
|
gcc -Wall -g $< ${LOBJ} ../libfloatimg.a -o $@
|
|
|
|
nc-camcontrol: nc-camcontrol.c Makefile funcs.o v4l2_pr_structs.o
|
|
gcc -Wall -g $< ${LOBJ} ../libfloatimg.a -lcurses -o $@
|
|
|
|
# ---------------
|
|
# external things
|
|
|
|
capture: capture.c Makefile
|
|
gcc -Wall -g $< -o $@
|
|
|
|
|
|
|