mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-03-29 14:09:58 +00:00
According to Apple: Swift compiler no longer supports statically linking the Swift libraries. They're included in the OS by default starting with macOS Mojave 10.14.4. For macOS Mojave 10.14.3 and earlier, there's an optional Swift library package that can be downloaded from "More Downloads" for Apple Developers at https://developer.apple.com/download/more/
20 lines
329 B
Makefile
20 lines
329 B
Makefile
.PHONY: all clean install uninstall
|
|
|
|
SWIFTC = swiftc
|
|
PREFIX = /usr/local
|
|
|
|
all: doh-logger
|
|
|
|
doh-logger: doh-logger.swift
|
|
$(SWIFTC) -o $@ -O $<
|
|
|
|
clean:
|
|
rm -f doh-logger
|
|
|
|
install: doh-logger
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
install -m0755 doh-logger $(DESTDIR)$(PREFIX)/bin
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/doh-logger
|