added -lz to ld flags (for Fedora ?)

This commit is contained in:
Tonton Th 2020-01-23 12:38:19 +01:00
parent cc9619fdbe
commit e804534715
5 changed files with 11 additions and 7 deletions

View File

@ -11,12 +11,12 @@ all: essai
#---------------------------------------------------------------
essai: essai.c libfloatimg.a floatimg.h Makefile
gcc $(COPT) $< $(LDOPT) -lpnglite -o $@
gcc $(COPT) $< $(LDOPT) -lpnglite -lz -o $@
#---------------------------------------------------------------
TOTAR = *.[ch] Makefile *.sh *.txt \
doc/*.tex doc/mkdoc.sh \
doc/*.tex doc/mkdoc.sh doc/*.txt \
funcs/*.[ch] funcs/Makefile \
tools/*.[ch] tools/Makefile \
v4l2/*.[ch] v4l2/Makefile \

View File

@ -8,7 +8,7 @@ OBJS = fimg-png.o fimg-tiff.o misc-plots.o filtrage.o utils.o \
#---------------------------------------------------------------
t: t.c $(DEPS) ../libfloatimg.a
gcc $(COPT) $< ../libfloatimg.a -lnetpbm -lpnglite -lm -o $@
gcc $(COPT) $< ../libfloatimg.a -lnetpbm -lpnglite -lz -lm -o $@
#---------------------------------------------------------------

View File

@ -16,7 +16,7 @@ AR=ar
all: $(OBJS) ../libfloatimg.a
t: t.c ../libfloatimg.a $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lm -o $@
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -lm -o $@
# --------------------------------------------

View File

@ -30,8 +30,12 @@ fimg2pnm: fimg2pnm.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -o $@
fimg2png: fimg2png.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lpnglite -o $@
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -o $@
#
# this tool require an external library
# http://la.buvette.org/devel/libimage/libimage.html
#
addtga2fimg: addtga2fimg.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -limageSO -lm -o $@
@ -41,5 +45,5 @@ addpnm2fimg: addpnm2fimg.c $(DEPS)
# if "undefined reference to crc32" then "use -lz"
png2fimg: png2fimg.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lpnglite -o $@
gcc $(COPT) $< ../libfloatimg.a -lpnglite -lz -o $@

View File

@ -18,7 +18,7 @@ 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 -lm -lv4l2 -o $@
gcc ${COPT} $< rgb2fimg.o ../libfloatimg.a -lz -lm -lv4l2 -o $@
video-infos: video-infos.c Makefile funcs.o v4l2_pr_structs.o
gcc -Wall -g $< funcs.o v4l2_pr_structs.o -o $@