-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 693 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CFLAGS = -O2 -fsanitize=undefined
#CFLAGS = -g -O
BINDIR = /usr/local/sbin
LDFLAGS = -lssl -lcrypto
# autodetect systemd
ifeq ($(shell pkg-config --exists libsystemd-daemon || echo NONE),NONE)
$(info * systemd-daemon library not found, disabled systemd support.)
else
CFLAGS += -DUSE_SYSTEMD $(shell pkg-config --cflags libsystemd-daemon)
LDFLAGS += $(shell pkg-config --libs libsystemd-daemon)
endif
https-proxy: https-proxy.c
$(CC) -o $@ -Wall -Wno-parentheses $(CFLAGS) $+ $(LDFLAGS)
clean:
rm -f https-proxy
install: https-proxy certgen
strip --strip-all $<
install -D $+ $(BINDIR)
uninstall:
rm -f $(BINDIR)/https-proxy $(BINDIR)/certgen
server.pem:
./certgen localhost "$@"