From 08f86ef398fb3c5bf85a9d575deda51e326b96b9 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 #15, closes #20. Resolves #7, resolves #14, resolves #16, resolves #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)