aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 94346c1..90e2e34 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,21 @@
+.POSIX:
.PHONY: all clean install
CC = clang
LDFLAGS = -lreadline
CFLAGS = -std=c90 -Weverything
-PREFIX := /usr/local
+PREFIX = /usr/local
-all : spsh
+all: spsh
-spsh : main.o banner.o cmd.o loop.o
+spsh: main.o banner.o cmd.o loop.o
$(CC) $(CFLAGS) main.o banner.o cmd.o loop.o $(LDFLAGS) -o spsh
-tags :
+tags:
ctags -- *.c *.h
-clean :
+clean:
rm -f -- *.o spsh tags
-install : spsh
- install -m 0755 spsh "$(PREFIX)"/bin
-
+install: spsh
+ install -m 0755 spsh $(PREFIX)/bin