aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2020-10-08 17:56:11 +0300
committerJoursoir <chat@joursoir.net>2020-10-08 17:56:11 +0300
commitae832e7ec00a30bf23609fcf35e7d1ffcf63e19b (patch)
tree8b8c2ab2e4d40b36a1bd9fecc38620d906370765 /Makefile
parent84180756da688591de8324733d344bd14d15ddef (diff)
downloadlock-password-ae832e7ec00a30bf23609fcf35e7d1ffcf63e19b.tar.gz
lock-password-ae832e7ec00a30bf23609fcf35e7d1ffcf63e19b.tar.bz2
lock-password-ae832e7ec00a30bf23609fcf35e7d1ffcf63e19b.zip
add docs and change style
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..4301985
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+VERSION = 1.01
+PREFIX = /usr/local/bin
+CC = gcc
+CFLAGS = -Wall -g
+SOURCES = easydir.c handerror.c main.c
+OBJECTS = $(SOURCES:.c=.o)
+EXECUTABLE = lpass
+
+.PHONY: all clean install uninstall
+
+all: $(EXECUTABLE)
+
+clean:
+ @rm -rf $(EXECUTABLE) $(OBJECTS)
+
+$(OBJECTS):
+ @$(CC) -c $(CFLAGS) $(SOURCES)
+
+$(EXECUTABLE): $(OBJECTS)
+ @$(CC) $(CFLAGS) -o $(EXECUTABLE) $(OBJECTS)
+
+install: all
+ @echo installing file to $(PREFIX)
+ #@mkdir -p $(PREFIX)
+ #@cp -f $(EXECUTABLE) $(PREFIX)
+ @install $(EXECUTABLE) $(PREFIX)
+ @chmod 755 $(PREFIX)/$(EXECUTABLE)
+
+uninstall:
+ @echo removing file from $(PREFIX)
+ @rm -rf $(PREFIX)/$(EXECUTABLE) \ No newline at end of file