💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Vgmi › files › f09c23cdbca15435bd6b852d76620… captured on 2023-12-28 at 15:41:17. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
0 SHELL = /bin/sh
1
2 CC=cc
3 PREFIX=/usr/local
4 CFLAGS=-I./include -I/usr/local/include -ansi -Wall -Wextra -std=c89 \
5 -pedantic -O2 -D_POSIX_C_SOURCE=200809L
6 LDFLAGS=-s -L/usr/local/lib -lm -ltls -lcrypto -lssl -lpthread
7
8 # uncomment to build on Illumos
9 #CFLAGS=-Wall -Wextra -pedantic -O2 -Wformat-truncation=0
10 #LDFLAGS=-s -L/usr/local/lib -lm -ltls -lcrypto -lssl -lpthread -lsocket
11 #CC=gcc
12
13 build: src/*
14 ${CC} -O2 -c -o stb_image/stb_image.o -I./include stb_image/stb_image.c
15 ${CC} ${CFLAGS} src/*.c stb_image/stb_image.o -o vgmi ${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