shinyblink/ffshot

Makefile?

Closed this issue · 3 comments

Hi @shinyblink , @vifino , @g-rden .

$ make
cc -pedantic -Wall -Wextra -Os -lxcb -lxcb-image -o ffshot ffshot.c
/usr/bin/ld: /tmp/ccIPsFIF.o: in function «main»:
ffshot.c:(.text.startup+0x4b): undefined reference to «xcb_connect»
...

Maybe replace:

ffshot/Makefile

Lines 14 to 15 in 854c537

ffshot: ffshot.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o ffshot $^

to

$(BINS): ffshot.c
        $(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@

?


PS:

$ uname -a
Linux devuan-zvezdochiot 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
$ cc --version
cc (Debian 10.2.1-6) 10.2.1 20210110

Hey. I agree with the order of the linking arguments, but not the target changes.
I'll push a commit in a second.

By the way, how'd you find this? Did interest in farbfeld utilities suddenly peak? :)

Hi @vifino .

I know farbfeld for other reasons. It was tested by me along with others. I was looking for an intermediate format for fast packing / unpacking of images (big set, scans). As a result, I settled on imagezero, but now I prefer fpng.