aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-09-17 18:25:35 +0200
committerMattias Andrée <maandree@kth.se>2024-09-17 18:25:35 +0200
commitad6c9cbcd8548425e9db258e51906b569eb46c7f (patch)
treeb75cd05fd3ed7c8b7c4339c643db1b6e009a6aaa /Makefile
downloaddeadshred-ad6c9cbcd8548425e9db258e51906b569eb46c7f.tar.gz
deadshred-ad6c9cbcd8548425e9db258e51906b569eb46c7f.tar.bz2
deadshred-ad6c9cbcd8548425e9db258e51906b569eb46c7f.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1e91bbd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+.POSIX:
+
+CONFIGFILE = config.mk
+include $(CONFIGFILE)
+
+OBJ =\
+ deadshred.o
+
+HDR =
+
+all: deadshred
+$(OBJ): $(HDR)
+
+.c.o:
+ $(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
+
+deadshred: $(OBJ)
+ $(CC) -o $@ $(OBJ) $(LDFLAGS)
+
+install: deadshred
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1/"
+ cp -- deadshred "$(DESTDIR)$(PREFIX)/bin/"
+ cp -- deadshred.1 "$(DESTDIR)$(MANPREFIX)/man1/"
+
+uninstall:
+ -rm -f -- "$(DESTDIR)$(PREFIX)/bin/deadshred"
+ -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/deadshred.1"
+
+clean:
+ -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.gch *.gcov *.gcno *.gcda
+ -rm -f -- deadshred
+
+.SUFFIXES:
+.SUFFIXES: .o .c
+
+.PHONY: all install uninstall clean