From ddf2a46f6a707a08d3745e5f03f98ca994615955 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 26 Apr 2017 17:43:59 +1200 Subject: Tidy Makefile --- Makefile | 16 ++++++++-------- 1 file 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 -- cgit v1.2.3