Skip to content

Commit

Permalink
Merge pull request #1 from cdalvaro/feature/add_support_for_apple_sil…
Browse files Browse the repository at this point in the history
…icon

feat: Add support for Apple Silicon
  • Loading branch information
cdalvaro authored Jul 6, 2023
2 parents 6061b86 + 9a14a1f commit 4235974
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
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)
cp $(LIBRARY_NAME) $(DESTINATION)/$(LIBRARY_NAME).$(VERSION)
chmod 444 $(DESTINATION)/$(LIBRARY_NAME).$(VERSION)
chown root:wheel $(DESTINATION)/$(LIBRARY_NAME).$(VERSION)

0 comments on commit 4235974

Please sign in to comment.