summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkiz <skiznet@aol.com>2024-10-02 17:06:05 -0400
committerSkiz <skiznet@aol.com>2024-10-02 17:06:05 -0400
commit6bbaf8b3e9e6b7412f600dcdadc4883a8453b20c (patch)
tree523fea4c507b8d77790add0b25f2004f916f4e0b
parent375af8e228edd48c4a841943e782c427ebdedff3 (diff)
Set up make install
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9861c09..6aa3600 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+PREFIX ?= /usr/local
+BINDIR ?= $(PREFIX)/bin
+TARGET = spwd
+
all:
- clang -O3 -march=native -std=c99 -pedantic -o spwd src/spwd.c
+ cc -O3 -march=native -std=c99 -pedantic -o $(TARGET) src/spwd.c
+install:
+ install -Dm755 $(TARGET) $(BINDIR)/$(TARGET)