Skip to content

Commit

Permalink
Merged biscuitehh#21
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbero committed Jan 18, 2023
1 parent 6061b86 commit 621ca82
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
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)
install -o root -g wheel -m 444 $(LIBRARY_NAME) $(DESTINATION)/$(LIBRARY_NAME).$(VERSION)

0 comments on commit 621ca82

Please sign in to comment.