💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › 154ee08c4da7526ba886bad0c512e… captured on 2022-07-16 at 17:11:58. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
0 # FreeBSD makefile
1 SHELL = /bin/sh
2
3 PREFIX = /usr/local
4 CC = cc
5 CFLAGS = -O2 -Wall -Wpedantic -Wextra -I/usr/local/include -I./include
6 LDFLAGS = -L./lib -lcasper -lcap_net -L/usr/local/lib -ltls -lcrypto -lpthread -lm -lssl
7 FLAGS = -DTERMINAL_IMG_VIEWER
8 SRC = ${:!ls src/*.c!}
9 OBJ = ${SRC:.c=.o}
10
11 .c.o:
12 ${CC} -c ${CFLAGS} ${FLAGS} {body}lt; -o ${<:.c=.o}
13
14 vgmi: ${OBJ}
15 ${CC} -o $@ ${OBJ} ${LDFLAGS}
16
17 install:
18 cp vgmi ${PREFIX}/bin
19 chmod 755 ${PREFIX}/bin/vgmi
20
21 uninstall:
22 rm ${PREFIX}/bin/vgmi
23
24 clean:
25 rm -f vgmi
26 rm ${OBJ}
27