💾 Archived View for gemini.rmf-dev.com › repo › Vaati › Upload › files › 95ba9a4ff44d5b3044772d7be3a… captured on 2023-11-04 at 12:27:10. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-09-08)
-=-=-=-=-=-=-
0 SHELL = /bin/sh
1
2 PREFIX = /usr/local
3
4 CFLAGS = -ansi -std=c89 -pedantic -Wall -Wextra \
5 -O2 -D_POSIX_C_SOURCE=200809L
6 CC = cc
7 # Uncomment to build on Illumos
8 #CFLAGS = -ansi -std=c89 -pedantic -O2 -Wall -Wextra -lsocket
9 #CC = gcc
10
11 SRC = src/main.c src/parser.c src/server.c src/strlcpy.c src/sandbox.c
12
13 upload: src/*
14 ${CC} ${SRC} ${CFLAGS} -o $@
15
16 install:
17 cp upload ${PREFIX}/bin
18 chmod 755 ${PREFIX}/bin/upload
19
20 uninstall:
21 rm ${PREFIX}/bin/upload
22
23 clean:
24 rm -f upload
25