Makefile?
Closed this issue · 3 comments
zvezdochiot commented
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:
Lines 14 to 15 in 854c537
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
vifino commented
Hey. I agree with the order of the linking arguments, but not the target changes.
I'll push a commit in a second.
vifino commented
By the way, how'd you find this? Did interest in farbfeld utilities suddenly peak? :)
zvezdochiot commented