aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 49ca5dd..3ef5c6e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,21 @@
+.PHONY: all clean install
+
CC = gcc
LDFLAGS = -lreadline
CFLAGS = -Wall -Wpedantic -ansi -pedantic-errors
PREFIX := /usr/local
+all : spsh
+
spsh : main.o banner.o cmd.o loop.o
$(CC) $(CFLAGS) main.o banner.o cmd.o loop.o $(LDFLAGS) -o spsh
tags :
ctags -- *.c *.h
+clean :
+ rm -f -- *.o spsh tags
+
install : spsh
install -m 0755 spsh "$(PREFIX)"/bin
-clean :
- rm -f -- *.o spsh tags