From 0cbbfc715b420e565666bccc8dc6c44b9cf1e7f0 Mon Sep 17 00:00:00 2001 From: Nuri Jung Date: Mon, 7 Nov 2022 11:32:10 +0900 Subject: [PATCH] Remove hard-coded target and optimize Closes biscuitehh/pam-watchid#15, closes biscuitehh/pam-watchid#20. Resolves biscuitehh/pam-watchid#7, resolves biscuitehh/pam-watchid#14, resolves biscuitehh/pam-watchid#16, resolves biscuitehh/pam-watchid#17. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 401b8cf..e7bece2 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ VERSION = 2 LIBRARY_NAME = pam_watchid.so DESTINATION = /usr/local/lib/pam -TARGET = x86_64-apple-macosx10.15 +TARGET = $(shell clang -dumpmachine) all: - swiftc watchid-pam-extension.swift -o $(LIBRARY_NAME) -target $(TARGET) -emit-library + swiftc watchid-pam-extension.swift -O -Ounchecked -gnone -o $(LIBRARY_NAME) -target $(TARGET) -emit-library install: all mkdir -p $(DESTINATION)